Site logo

Archived topic

show full image in page hero

7 replies · Started by eran on September 3, 2022

Viewing posts 1–8 of 8

Hi,
I made page hero to my home page but I don't see the full image.
how can I fit the image to the page hero so it will display the full image + why the image is blurred when its in the page hero?

Nope.
I want the page hero to stay the same height and won't be blurred how can i do that?

Hi there,

you need to make the Page Heros aspect ratio match that of your original image.

1. Calculate your original images aspect ratio: Height / Width * 100 = Aspect Ration %.
Your example URL is: 1280 / 1920 * 100 = 67%.

2. Now you can add this CSS to make the page-hero match that ratio:

.page-hero {
    min-height: 67vw;
}

This will make it so 100% of the image is shown on any screensize.

It makes my page hero height very large.
how can i show the full picture but with small height?

The only way would be to NOT have the hero full width. You can't have full width, full image and restrict the height...

It still don't show all the image if i put it on contained

Hi Eran,

Try to upload an image with the same aspect-ratio as your page hero. Try an image with dimensions or aspect-ration of around 1143 x 279px.

This archived topic is closed to new replies.