On 7/27/06, Nick morgan <[EMAIL PROTECTED]> wrote:

> Part of the problem is that different browsers apply margins
> and padding differently on uls.

And as I understand it the W3C spec allows for either, so it's within
the standard to use padding, or margins, whichever the browser
designer prefers.

If I'm going to be styling a lot of lists I usually just pick put a rule like:

ul, ol, dl
{ padding: 0; margin: 0 0 0 40px;}

.. at the start of my style sheet.

As far as I know all the browsers will follow this instruction so I
then have consistency across browser.

For those who follow the practice of zeroing out all margins with

* {margin: 0; padding: 0;}

All you need is something like:

ul, ol, dl
{ margin-left: 40px;}

Or you could choose to indent with padding, of course.

Of course if I'm choosing to not style my lists I can just let the
browser do what it wants.

-- 
Ed Seedhouse
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to