1. Computing

Indenting Lists

By , About.com Guide

2 of 3

How Does Indenting Affect HTML Lists?
Padding and Margin in List Indenting

Padding and Margin in List Indenting

Screen shot by J Kyrnin

What this means is that if you build a list with no changes to the padding or margin, IE will add margin to the UL element and Firefox will add padding.

You can see this in the picture on this page. I added a background color and a purple outline to the UL so that you could see what it was affecting.

The Safari sample is grey out to the left edge of the element, including the list markers. The Internet Explorer sample is grey only under the list items.

  1. About.com
  2. Computing
  3. Web Design / HTML
  4. CSS
  5. CSS Tutorials
  6. Indenting Lists - How Does Indenting Affect HTML Lists?

©2013 About.com. All rights reserved.