My Location

Feb 13, 2009

List margins and padding

I had some trouble today getting my <ul> unordered list to position correctly across browsers. The problem turned out to be simply that the default style sheet in IE is different from the other browsers I tested in its settings for left margin and left padding.

The solution is simply to set values for both left margin AND left padding (use zero if you like) to get your list to position correctly across browsers.

No comments:

Post a Comment