header
-
my image on the header seems to be bigger than the header space, where can I change it?
The blog I need help with is: (visible only to logged in users)
-
Hello @dandradiss,
The image-size is set to cover in CSS, meaning that it will stretch to always fit the width of the browser/devices(tablets & mobiles), due to which the image is cropped by browser view-port. The focus is also on center when it is stretched.There are 3 ways to solve this:
1. Change the image and add all your contents(texts) at the very center of the image. But it will not work on every device(resolutions).OR
2. Change the background-size CSS property from cover to contain:
.bg-image { background-size: contain; }This will ensure that the entire image is visible at all times(so there’s no cropping due to stretching). But, it adds empty spaces to either sides of the image. So you have to ensure that you upload a really wide image every time.
OR
3. Increase the height of the header area: (recommended)
.header { padding: 150px 0; }Hope this helps :)
-
@dandradiss,
Try focusing your text’s of the image away from the corners(and closer to the center). That will solve the issue :) -
-
-
- The topic ‘header’ is closed to new replies.