Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS selector

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #31039
    123mehran
    Participant

    what’s the difference between
    1) ul#menu{
    }
    ul#menu li{
    }
    2)#menu ul{
    }
    #menu ul li{
    }
    ?

    #69459
    TT_Mark
    Member

    Number 1 is

    Number 2 is

    #69463
    TheDoc
    Moderator

    Also, number 1 is preferred in almost all instances.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.