Forum Moderators: not2easy
<div class="MainMenu" id="MainMenu">
<a class="MainItem" id="hlMain" href="Portal.aspx">main</a>
<a class="MainItem" id="hlSpecial" href="Portal.aspx">special</a>
</div>
with this css:
.MainMenu
{
background: white;
direction: rtl;
}
a.MainItem
{
width: 108px;
height: 20px;
background: url(images/MainButton.png) no-repeat;
text-decoration: none;
background-position: center;
display: inline;
color: Purple;
}
ps. what tags does ie show differently then ff and how can i make my site look ok in ff now?
Thanks for all the help.
First, make sure you're using a complete DOCTYPE. This will force IE out of quirks mode, and it will be much easier to create a page that looks similar in both browsers:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
I'd start there.
Now, the reason for your problem: you're setting an anchor to display inline, and then you're setting a width to that anchor. This works in IE why? Because it's incorrectly assigning width and triggering hasLayout on an inline element.
You can't put a width to an inline element, but you can to a block element. You'll need to change it to display as block, and then if you need it to sit "inline" next to something else, you'll have to float it :)