Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The method for displaying a background image at its full height is to set the background-size property to "100% auto". This will stretch the image to 100% of the height of the container, while maintaining its aspect ratio. The full CSS code for this would be:

background-image: url('image.png');
background-size: 100% auto;
background-repeat: no-repeat;

Replace "image.png" with the path to your desired image. The background-repeat property is optional and can be set to "repeat" or "repeat-x" or "repeat-y" depending on how you want the image to repeat.