Reply to Re: css with <ul>

Your name:

Reply:


Posted by Toby Inkster on 01/31/06 10:29

Els wrote:

> What you want is for instance:
> ul{margin-left:0;}
> ul ul{margin-left:10px;}

Argh! How many times do I have to say it?!

Different browsers use different combinations of margin and padding on UL
and LI to each achieve roughly the same effect. (An indentation of about
1.5em, followed by a bullet point, then an indentation of about 1em.)

Whenever you set a margin or padding on a list or list item, you must set
them all!

UL { margin: AAA; padding: BBB }
UL LI { margin: CCC; padding: DDD }

for whatever values AAA, BBB, CCC and DDD that you want.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация