Help - Search - Members - Calendar
Full Version: stretch background image
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
JimiB
On my home page, the background image in the left content section suited the original template by only going half way down the columb.
Now i need to stretch the bg image down the full left content columb. i have tried changing my css without success.

CODE
#left_content{width:42%;height:auto;margin:10px;float:left;padding:10px;background:url(images/left_content_bg.png) repeat-x top;background-position:0 -18px;}
pandy
You mean stretch or tile? If the latter just remove repeat-x.
Christian J
Do you want the image to both stretch and repeat itself?

You might use the "background-size" property to stretch it, but the result may depend on wether the element's height is known or not.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.