Click to See Complete Forum and Search --> : vertically strech background image across div


ajcool123
10-03-2008, 01:28 PM
Hi Guys,

Here is what my site looks like now. I am trying to stretch the green/red background image so that it fills depending on how much text is provided. Attached is a copy of the background image as well as the CSS/HTML.

Body.jpg is the image I am trying to stretch vertically based on how much content is in the div.

Please take a look at what it looks like, does anyone have any CSS suggestions?

Also any thoughts on how to remove the white bar between images in IE?

Thanks!

FourCourtJester
10-03-2008, 01:36 PM
The white bar under your header?

What do you mean by 'how much text is provided'? As in , how far vertically down the text will go? So you only want that background to be shown behind text?

Edit: also, to 'stretch' an image, check out http://www.htmlite.com/faq022.php

ajcool123
10-03-2008, 02:14 PM
You can see the white space between the top image and the body image. Why is that there? It does not look like that in firefox.

What I want to have happen is when there is more text than the height of the background, I want it to stretch to fill instead of repeating the background. Does that make sense?

Thanks!