Forum Moderators: not2easy
<url removed>
In IE7 and FireFox the tabs on the top look fine. In IE6 the entire thing is broken and I can't figure out why.
I'm usually pretty good about figuring out the oddities in IE6 and fixing my CSS to accommodate them, but this has me stumped.
Anyone have some ideas?
[edited by: encyclo at 2:40 am (utc) on Jan. 25, 2007]
[edit reason] no links to personal sites please, see forum charter [/edit]
I'm slowly going through and using *html to add negative margins only for IE6 and it seems to work.
However, I don't understand why this happens.
This code is great for IE7 and FireFox:
#gradient-left {
height: 7px;
width: 10px;
float: left;
margin-left: 11px;
background: url(http://www.example.com/images/newtabs/gradient-bar-left2.jpg);
}
For IE6, I need to add this:
*html #gradient-left {
margin-left: -11px;
margin-top: -7px;
If I don't add this, the div is pushed 11 pixels TOO FAR to the right and it's about 14 pixels tall and repeats the background image twice. By removing 11 pixels of left margin and 7 pixels of top margin somehow the div is the right size and in the right place.
#*$!?
[edited by: encyclo at 2:40 am (utc) on Jan. 25, 2007]
An admin will shortly nuke your link, so I'd recommend that you figure a way to boil it into a short demo.
Good exercise, that. Isolate the menu code and CSS, and put that in a standalone file, then keep paring it down.
I can tell you right now that your markup isn't delivering your DOCTYPE's promise. The markup is HTML 4 markup, but the DOCTYPE is XHTML 1.0.
#gradient-left {
display: inline;
}
This doesn't preclude the box model issue; it could be both.