SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2010
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Not sure what this CSS code means

    #content > *,
    #left-column > * {
    padding: 0 .75em;
    }
    #content > .frame {
    padding: 5px;
    border: 1px solid #ccc;
    }


    What does the asterisk and great than sign mean?

    Thank you.

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,607
    Mentioned
    24 Post(s)
    Tagged
    1 Thread(s)
    * means any tag

    so #content > * styles any tag contained directly inside the one that has an id="content"

    eg.

    <div id="content"><p><b></b></p><p><i></i></p><img></div>

    it applies to the two <p> tags and the <img> tag but not to the <div> <b> and <i> tags.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •