• Resolved jayjerome

    (@jayjerome)


    Would someone be kind enough to explain what it means when code is ‘repeated’ in a css.style sheet theme?
    Like this ‘double ul ul’ for instance:

    ‘}
    #sidebar ul ul
    {
    list-style:none;
    margin:0.5em 0 0 1em;
    padding:0;
    }’

    What’s the significance of the second ‘ul’ ?

    (the expression preceding the one above is almost identical, but without the repeated ‘ul’ and with the margin set to ‘0’)

Viewing 2 replies - 1 through 2 (of 2 total)
  • theiconoclast31

    (@theiconoclast31)

    So let’s say my sample HTML looks like this:

    <ul>
    <li>Papa John's</li>
    <li>Dominos</li>

    <li>
    <ul>
    <li>Mushrooms</li>
    <li>Pepperoni</li>
    <li>Tomatoes</li>
    </ul>
    </li>

    <li>Pizza Hut</li>
    </ul>

    ul { color: blue; } would make all the text blue, including “Papa Johns”, “Pepperoni”, “Pizza Hut” etc.

    ul ul { color: blue; } would make only the pizza toppings blue, NOT the pizzeria names.

    Thread Starter jayjerome

    (@jayjerome)

    ok, thanks for clearing that up for me — i appreciate the help…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Double trouble’ is closed to new replies.