Two things get mucked up here. I seem to of fixed them but I’ve never seen this and want to better know whats happening. Via my reset there is zero padding and margin and list style none on all lists. There are two .holiday lists side by side. The .holiday lists gets indented in ie6/7. I added list-style-position outside and that fixes it but is that the correct fix? Two, my whole container drops (its floated) because ie6 needed display inline for some reason. But you only need that hack when its floated in the direction of the margin right?
Note: I removed the “:” from the list style because the editor was making them a surprised face icon.
I would think so. That’s a standard setting. It makes the LIs align with the container and the bullets (if any) hang outside (unless there’s padding to pull them in).
Note: I removed the “:” from the list style because the editor was making them a surprised face icon.
Bump. Still don’t know why the floated list gets indented. I imagine it has something to do with floated list loose there bullets in IE too? Also, still don’t know why I have to give ie6 display inline when the margin is applied to the opposite side of the floated direction? Maybe because there are two floated lists side by side and the one on the right runs into the margin-right of the first?
It seems that when you add display:inline to the floated list then IE set the space for the bullet to list-style:inside although the bullet is not actually showing because you have specified none.
Using list-style:outside corrects this.
When you use list-style:inside it turns the bullet marker into an inline element so I guess this is some kind of reverse logic in that if you have an inline element then the list-style:inside is probably the default for IE6 and 7.
This seems to hold true as this simple test case shows space on the left as soon as you make the ul display:inline.
Thank you Paul for the detailed breakdown. More clear now. I don’t know why I didn’t do this from the start, but from the sounds of it I will just give it padding instead and then remove the display inline. That should trim two rules. Always makes me happy when I can trim.