Nerdygeek
04-21-2010, 09:14 AM
I have a box with a header and footer and a background.
I use this to make the header and footer appear.
<div id="feature">
<img src="images/headback.jpg" />
<p>This is my web page</p>
<p>This is my web page</p>
<p>This is my web page</p>
<p>This is my web page</p>
<p>This is my web page</p>
<img src="images/headf.jpg" />
</div>
Then the CSS
#feature { background: url(../images/headbg.jpg) repeat-y; margin-top:30px;}
The problem with doing it this way is when I specify an exact height the background image from the CSS will go beyond the footer image of the div.
There's an easy way to do this?
Thanks
I use this to make the header and footer appear.
<div id="feature">
<img src="images/headback.jpg" />
<p>This is my web page</p>
<p>This is my web page</p>
<p>This is my web page</p>
<p>This is my web page</p>
<p>This is my web page</p>
<img src="images/headf.jpg" />
</div>
Then the CSS
#feature { background: url(../images/headbg.jpg) repeat-y; margin-top:30px;}
The problem with doing it this way is when I specify an exact height the background image from the CSS will go beyond the footer image of the div.
There's an easy way to do this?
Thanks