I believe you can also target the ul li by being more specific. Each
element has a precedence value. The higher the total value, the higher
the priority. By being more specific, you increase the precedence
value.
ol li {
  padding-top:10px
}

ol li ul li {
  padding-top:5px
}

You can read more about specificity at w3.org:
http://www.w3.org/TR/CSS2/cascade.html#specificity

Bryan

On Nov 24, 6:38 am, Brownie <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a little problem with my css sheet, and i can't manage padding.
>
> So, I have 2 lists :
> <ol>
>   <li>
>   <ul>
>     <li>bla1 bla1</li>
>     <li>bla2 bla2</li>
>   </ul>
>   </il>
>   <li>
>   <ul>
>     <li>bla3 bla3</li>
>     <li>bla4 bla4</li>
>   </ul>
>   </li>
> </ol>
>
> I want a big space between ol li elements but a small one between ul
> li elements.
>
> So a made a css
>
> ol li
> {
>   padding-top:10px}
>
> ul li
> {
>   padding-top:5px
>
> }
>
> But, the "ol li" attributes control all li attributes (ol li and ul
> li).
>
> Do you have a solution ?
>
> Sincerely,
>
> Brownie
--~--~---------~--~----~------------~-------~--~----~
--
You received this because you are subscribed to the "Design the Web with CSS" 
at Google groups.
To post: [email protected]
To unsubscribe: [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to