Top image bar on website broken in IE6 and FF; text is obscured. How to fix this?
May 13, 2004 6:23 AM
Subscribe
I've knocked up a website which is modifed from some of the templates from the
layout reservoir. However the top bar which contains the image is causing problems under some browsers (IE6 and Firefox being two) because the height doesn't match the
image height which means that the text is obscured. Any suggestions?
One thing I forgot to mention, is that the css can be found
here to save you digging through the code.
posted by ralawrence to computers & internet (9 comments total)
#Header {
margin:20px 0px 10px 0px;
padding:0;
height:50px;
border-style:solid;
border-color:black;
border-width:1px 0px; /* top and bottom borders: 1px; left and right borders: 0px */
line-height:11px;
background: url("logo.jpg") left top no-repeat;
}
Kill all the other stuff releated to the #Header (the voice hack and the Be Kind to Opera stuff) since you're no longer working around different box models (since there's no padding anymore, the height calculation will be consistent across browsers).
You might want to but a no-break space or an empty span tag inside the header element just to make things consistent.
posted by yerfatma at 6:38 AM on May 13, 2004