Juicy
11-25-2007, 06:40 PM
Ok, so let's say I have a background image that has a vertical length of a few inches. When I use this code
.back {
background-image: url(background.jpg);
background-repeat: repeat; }
and do a <div class="back">Content</div>, the full vertical length of the background image is not displayed unless I have enough content. So, If I have 1 line of text, only 1 lines vertical length of the image is shown. What would be the best way to make it so that the background image is displayed so that it's entire vertical length is displayed regardless of the amount of content, but also won't start over again further down the page?
.back {
background-image: url(background.jpg);
background-repeat: repeat; }
and do a <div class="back">Content</div>, the full vertical length of the background image is not displayed unless I have enough content. So, If I have 1 line of text, only 1 lines vertical length of the image is shown. What would be the best way to make it so that the background image is displayed so that it's entire vertical length is displayed regardless of the amount of content, but also won't start over again further down the page?