Not sure why your having problems in this particular situation, but there are a couple of way of getting around your CSS being interprated diffrently by IE and other W3C standards compliant browsers.
There is this way.
- Code: Select all
#leftnav {
width: 130px;
_width: 140px;
}
Problem with doing it this way is the code is not valid and wont pass W3C CSS validation.
Or you can make seperate CSS files one for IE and one for the rest and use conditional comments in your head section so it uses the right file.
Here is an article about the couple of options with IE hacks.I have also used this before.
- Code: Select all
#leftnav {
float: left;
width: 130px;
margin-top: 10px;
margin-left: 5px;
padding-top: 1em;
}
html>body #leftnav {
padding-left: 5px;
}
Which works well and is valid.