You are here: Re: css with <ul> « HTML « IT news, forums, messages
Re: css with <ul>

Posted by Els on 01/31/06 11:14

Toby Inkster wrote:

> 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?!

To me? This would be the last time - sorry! <g>
To the rest of the world? Better make a tutorial and memorize the url
;-)

> 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.

All true :-)
(I always set all padding and margins on both ul and li to 0 before I
start styling them, but I forgot to pass that on in my reply)

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: The Buggles - Video Killed the Radio Star

 

Navigation:

[Reply to this 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

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