|
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
[Back to original message]
|