PDA

View Full Version : Background vertical length


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?

jlhaslip
11-25-2007, 06:42 PM
google faux columns might be a good place to start.
Post your code so we have a better understanding of the context for the problem, or better yet, post a link, please.

Excavator
11-25-2007, 06:46 PM
Hello Juicy,
It sounds like you need faux columns. Google that or have a look at some of my examples:
one (http://nopeople.com/CSS/faux_3-column/)
two (http://nopeople.com/CSS/equal_length_columns/)
three (http://nopeople.com/CSS/another_3-column/)

Juicy
11-25-2007, 06:51 PM
Ok, cool. Thanks