Posted by Ben C on 05/28/07 16:04
On 2007-05-28, Knut Krueger <knut.krueger@usa.com> wrote:
> Jonathan N. Little schrieb:
>> Knut Krueger wrote:
>>> Just reading margin and padding in lists ...
>>> Is there a way to get the lines (1 and 2) with a <br /> spacing?
>>> <li> line 1</li>
>>> <li> line 2</li>
>>> Its working wiht
>>> <li> line 1</li>
>>> <br />
>>> <li> line 2</li>
>>> buts an error in the validating
>>
>> LI { margin: 1em 0; }
>>
> Thanks
> uhh then i have to change all li entries, because I do not want this for
> all lists.
> I have a class in the <UL class=...> not in the <li>
You can always do:
ul.foo li { margin: 1em 0; }
which means "apply the margin to <li>s that are descendents of <ul>s
with class of foo"
Or
ul.foo > li { margin: 1em 0; }
"apply the margin to <li>s that are children of <ul>s with class of foo"
[Back to original message]
|