size container to background image set to ‘contain’
-
I’ve been puzzling on and off for the last few days how to do this? Is it possible without extra code? I have a container with a background image set to ‘contain’, but the container doesn’t adjust itself to the dimensions of the background image. I’d like the image to be full width to match the header and the height to adjust automatically when resizing of the window. In other words, the background image is always shown in it’s entirety, not cropped and the width is always the full width of the header section when resizing with the height of the background image adjusting automatically. Can anyone give me any tips how to achieve this?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘size container to background image set to ‘contain’’ is closed to new replies.