Edit:
I've put a quick example up
here. The styles wrapped in funky-looking comment tags are a few fixes for IE6 and 5. Hopefully it's not too difficult to understand.

Originally Posted by
divillysausages
hi egor, thanks for getting back to me so quick. i tried what you said but no joy. im trying the body background image thing and it's working out better, the only reason i initially tried this approach is cause i've had problems with the body bg image before where ie would push the content out a pixel or two and the whole thing would look stupid. its not really that important that it won't work out another way, but i'm trying to increase my knowledge of xhtml and developing without using tables. cheers for the reply!
Ah yes, there is a pixel shift between the body background and contents when you resize the browser window. I think someone posted a fix for this issue before, but can't remember what it was.
In your case, I would still go with the body background image approach, then make the container 100% high (the shift won't be noticeable on your shadow).
HTML Code:
<div id="page">
<p>Contents here.</p>
</div>
Code:
* { /* Resets below values of ALL elements to 0 */
margin: 0;
padding: 0;
}
body, html {
height: 100%;
}
body {
background: #COLOUR url(images/bg-body.gif) repeat-y center center;
}
#page {
background: #FFF;
min-height: 100%;
width: 700px;
margin: 0 auto;
}
* html #page {
height: 100%; /* For IE6 and under, as it treats height like min-height */
}
Try something like that.
Bookmarks