Lists, margins, paddings, markers and indentation

Read a guru text first.

ul, ol { background-color: #fcc; outline: 1px solid #f33; }
li { background-color: #cfc; outline: 1px solid #3f3; }

Browser defaults

  1. An item
  2. Another item
  3. And another one

No margin on the ul

No padding on the ul


No margin and padding on the ul

No margin and padding on the ul and a margin on the li

No margin and padding on the ul and a padding on the li


A margin and no padding on the ul


No margin and a padding on the ul


Some more tests


Home - More stuff