Your code in your post is odd, probably because you were not using the exact code as it appears on your page, at least not complete, ex:
<div style = "position:relative; right: 25px"
<ul>
is wrong, no closing '>' on the div. Another thing, <div> or <DIV> is not a command, it is a tag and when used in HTML code, creates a division element. All probably more than you needed to know, maybe not. OK, there are ways to deal with the fact that Mozilla and IE often see things differently. The easiest is the !important hack:
Code:
<div style = "position:relative;right:15px!important;right:25px;">
will position Mozilla 10px more to the right than it would be without the hack, IE uses the second value. You can use this for your other situation too:
Code:
#foldinglist{list-style-image:url(list.gif);position:relative;left:-25px!important;left:-15px;}
A better method in a style sheet or section is:
Code:
#foldinglist {
list-style-image:url(list.gif);
position:relative;
left:-25px;
}
* html #foldinglist {
left:-15px;
}
Again, it is the second value that will be followed by IE. There is a third method but, before we get into that. If you set a strict enough doctype for your page, often IE6 (but not earlier IE versions) will follow the the styling in the same way as Mozilla, thus making all these shenanigans unnecessary.
The third method involves a conditional and is the hardest to use because its use varies depending upon what you are trying to do. Basically you use a comment and if/endif pair:
Code:
<!--[if IE]>
<style>
#foldinglist {
left:-15px;
}
</style>
<![endif]-->
and in this case, could follow the original style section in the head of the page to create IE only styling.
There are other ways but, this should give you an idea of how to proceed.
NOTE: All values used are either arbitrary, or they are values you supplied. You will probably need to adjust them to suit.
Bookmarks