You are here: Re: List rendering « HTML « IT news, forums, messages
Re: List rendering

Posted by Martin Clark on 01/15/07 17:51

Michael wrote...
>"Martin Clark" <martin@spl.at> schreef in bericht
>> Michael wrote...
>>>I'd like to get rid of the
>>>spaces. Of course I can find another solution altogether to produce the
>>>indentation, but I thought lists would be a clean way to do it.
>> Something like:
>> ul.main li, ul.sub li {
>> padding: 0;
>> }
>> or adjust the amount of padding until it looks right
>> (e.g. padding: 0.2em; ).
>
>Thanks for your answer Martin. Unfortunately, by padding the list I can get
>the items to space approximately evenly (though the space before the first
>subitem is still larger than the space between the main items), but it's
>justified in the space of the original box. Actually, I just want to remove
>the space completely, making the main list less tall instead of keeping it's
>height but spacing the items in it. If you know what I mean.
>
Try specifying all the padding for <ul>, rather than just the padding-
left, as in:
ul.main {
padding: 0 0 0 10px;
etc...
--
Martin Clark

 

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

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