WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Double trouble (3 posts)

  1. Jayjerome
    Member
    Posted 7 years ago #

    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’)

  2. theiconoclast31
    Member
    Posted 7 years ago #

    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.

  3. Jayjerome
    Member
    Posted 7 years ago #

    ok, thanks for clearing that up for me -- i appreciate the help...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags