Site logo

Archived topic

background image size

1 reply · Started by jerry on January 30, 2023

Viewing posts 1–2 of 2

Hi,there.I want to set my container to only display a background image, and the container has no other elements. For example, my image is 533*300px. I set padding (top 150px bottom150px), but only part of the background image is displayed, not the complete background image.could you help me?
background image
533*300
padding (top 150px bottom150px)
padding300

Hi there,

is that Container Block spanning the full width of the screen?

if so calculate your images aspect ratio, height / width * 100 eg. `300 / 533 * 100 = 56.
select the Container Block and set is min height to 56 VW

This archived topic is closed to new replies.