glopal Posted August 17, 2009 Share Posted August 17, 2009 I'm using a negative margin to put a horizontal menu over a banner image. In some versions of IE8 it doesn't want to be over the banner. It works in compat view though. I've used the developer tools and I have a better idea of what's happening.In compat view:Not in compat view:Not in compat, without the negative margin:It feels like a hasLayout problem... but I thought ie8 wasn't affected by that? I'd like to note that I'm using an xhtml transitional doctype... unfortunately...CSS #topmenu{ height:20px; position: relative; padding:0 7px 0 7px; margin:0; margin-top:-22px; float:right; background-color:#000097; color:#fff; font-family: Tahoma,Arial,sans-serif;} Link to comment Share on other sites More sharing options...
glopal Posted August 17, 2009 Author Share Posted August 17, 2009 Here's some more info.When I remove the float:right in the developers tools, I get this:And when I change the float:right to text-align:right, I get this: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.