www.webdeveloper.com
Results 1 to 3 of 3

Thread: What is this ? and my guess

  1. #1
    Join Date
    Apr 2005
    Posts
    210

    What is this ? and my guess

    Hi friends,
    I can not find answer in google ...

    Newbie questions about css formats:
    Code:
    1. #myMenu ul li a {....}
    2. #myMenu, #myMenu ul {...}
    
    3. #myMenu > li > a {...}
    4. #myMenu ul li:hover a {...}
    I guess that:
    1 stands for "a of li of ul of #myMenu"
    2 stands for "#myMenu and ul of #myMenu".

    I totally don't know what 3 and 4 stand for.

    Please help and explain.

    Thanks.

    .

  2. #2
    Join Date
    Apr 2012
    Posts
    8
    the third one stand for "#myMenu which immediately follows <li> and immediately follows <a> tag"
    The fourth one stand for "In #myMenu, in <ul> when mouse hover over <li> the stylesheet is applied to <a>"

  3. #3
    Join Date
    Apr 2005
    Posts
    210
    Hi legend,
    Thanks.

    As my understanding,
    #myMenu > li > a {...} has higher priorities than #myMenu li a {...}
    Or
    #myMenu > li > a {...} overwrites #myMenu li a {...}

    Is it correct?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles