SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,209
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    The meaning of ">" in style

    Quote Originally Posted by Paul O'B
    html >body #outer{height:auto;}
    What does ">" mean here?

  2. #2
    With More ! for your $ maxor's Avatar
    Join Date
    Feb 2004
    Location
    Scottsdale, Arizona
    Posts
    909
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Paul is using a child selector.

    That says that all body elements, which are children (contained in) html elements have an id named outer with an auto height.

    Code:
    /* All paragraphs in a body element are red */
    
    body > p { color: #F00; }
    Checkout the W3's child selector section


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
  •