li with indented subcategories – firefox vs ie6
-
I decided to display categories with subcategories indented in the left and right sidebars of a 3 column layout. It looked great in IE6 but in Firefox the lists moved so much to the right that I ended up futzing with it to get it so I don’t like it in either browser but at least its legible.
https://www.dcsgroupllc.com/dcscrmsql/
Here’s the CSS that got me to where I am
#leftside ul {
display: inline;
color: #2A5A7E;
list-style-type: none;
margin-left: -5%;
}#leftside li {
display: list-item;
color: #2A5A7E;
list-style-type: none;
margin-left: 10%;
line-height: 130%;
padding-bottom: 1px;
padding-top: 1px;
}First I added the display:inline to the ul – this by itself with a left margin of 10% looked great in IE6 with no negative side effects. I checked it out in Firefox and had to add the #leftside li afterward. I’m fairly new at CSS
- The topic ‘li with indented subcategories – firefox vs ie6’ is closed to new replies.