So I have a drop down menu on my site. Apparently, Firefox, opera, IE 6.0, and IE 7.0 all have different ideas on what 114 pixels means.
The script I was using has a exception for IE, where I have to add 10 px to each box to make it display right, now, this would be fine. Except Opera reads those exceptions too, and makes the last menu item drop down to a new line.
HTML Code:
/* set up the default top level links */
.menu ul li a, .menu ul li a:visited {
display:block;
text-decoration:none;
color:#FFF;
width:114px;
height:24px;
font-weight: none;
color:#FFF;
border-bottom:8px solid #ffc20e;
background:#527d5d url('img/linkgbg.png') repeat-x bottom;
padding-left:10px;
line-height:2.0em;
margin-right:1px;
}
/* hack for IE5.5 to correct the faulty box model */
* html .menu ul li a, .menu ul li a:visited {
width:124px;
}
That bottom part is the IE fix, it says for 5.5, but it works for 6 aswell.
Can I make Opera not read this? If it just read the first one it would be fine.
Any help is appreciated.
Thanks
|