doubledee — 2011-12-25T16:26:58-05:00 — #1
Can you add margins to an Unordered List <ul> ??
r937 — 2011-12-25T16:44:07-05:00 — #2
doubledee — 2011-12-25T17:15:47-05:00 — #3
Had my style messed up.
ralphm — 2011-12-25T17:35:12-05:00 — #4
Indeed, in most browsers an UL has margins by default, so you usually will need to modify them to avoid surprises.
system — 2011-12-28T01:19:35-05:00 — #5
Hence the use of resets; same for LI -- some browsers pad the ul, some margin the li, some pad the li... can drive you nutters.
This comes up from time to time, and for some reason people have it in their head that tags like numbered headings, paragraphs and UL's can't accept certain values -- it's why you see this IDIOCY all the blasted time:
usually applying things to the DIV that could just as easily be applied to the UL since from a CSS standpoint a display:block container is a display:block container, regardless of what tag it is. ALL CSS values are SUPPOSED to be applicable with the same result to ALL elements. (something Mozilla and Microsoft still can't wrap their heads around with their treatment of LEGEND, INPUT and TEXTAREA)