In the following lines of CSS code:
.sf-menu li:hover ul, .sf-menu li.sfHover ul {top: 40px!important; }
What do the HTML tags <ul> and <li> mean?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
They target
<ul>and<li>elements in the page.In CSS an id is prefixed by
#, a class is prefixed by., and an element has no prefix at all.So the selector
.sf-menu li:hover ulwill apply to any<ul>element, inside an<li>element that you are currently pointing at, inside an element withclass="sf-menu".The selector
.sf-menu li.sfHover ulwill apply to any<ul>element, inside an<li>element withclass="sfHover", inside an element withclass="sf-menu".