SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2003
    Location
    Singapore
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ID syntax problems

    I'm wondering what are the differences between having

    ul#buttons

    and

    #buttons ul.

    Sometimes I'm required to use the first and sometimes the second. Maybe someone can point out where I missed out on?

  2. #2
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ul#buttons

    Selects any ul element with an id attribute that equals buttons.

    #buttons ul

    Selects any ul element that is a descendant of any element with an id attribute that equals buttons.

    http://penguin.theopalgroup.com/cgi-...electoracle.py
    Simon Pieters


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
  •