Forum Moderators: open
I'd really appreciate your help on this one.
I have a header layer which I want to have spanning the full width of the page. However, my CSS code (below) is not doing the job. There is always a small amount of white spave left to the right... Any suggestions?
#header {
position:absolute;
width:100%;
height:50px;
z-index:1;
left: 0;
top: 0;
background: #336699;
layer-background-color: #336699;
border: none;
}
TIA,
BlobFisk
(edited by: tedster at 10:37 am (utc) on Mar. 25, 2002)
It seems that for those of us still catering for NS4 we have to use some hacks to make things work to a true cross browser scheme.
Prehaps the best maxim is that if your code validates before you start adding your NS4 hacks in, then you're doing a good job!
For my original question, my code validated before adding in the margin properties into the <body> tag, and did not afterwards. I don't feel too guilty, it was a necessary hack for people still using NS4.
Thanks to all for their helpful replies, tips and comments. :)