Click here to Skip to main content
15,894,539 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Appreciate if u can let me know:
Below I wrote some classes, here class name have (.), Comma(,) and space ( ).
What is the meaning of this?
I have marked class name bold to get ur attention.

Now in below line comma(,) hyphen(-) and spaces are there,what they meant for:-

ul.AspNet-Menu li a, ul.AspNet-Menu li span{
    display: block;
    text-decoration: none;
}



ul.menu ul li
{
position:relative;
border:1px solid #aaa; border-top:none; 
width:148px; margin:0
}


ul.menu ul li a 
{
display:block; 
padding:3px 7px 5px; 
background-color:#d1d1d1
}


ul.menu ul li a:hover
{
background-color:#c5c5c5
}


ul.menu ul ul
{
left:148px; top:-1px
}
Posted
Updated 28-Feb-11 3:20am
v5

This should help to explain it: CSS Classes[^]
 
Share this answer
 
Comments
fjdiewornncalwe 28-Feb-11 9:38am    
Agreed. It is simple to figure out if the OP would read some documentation.
(.) [Dot] applicable to that class only

Example
ul.menu
or
a.highlight


Here menu class applies to the elements which contains the menu class.

( ) [Space] applicable to the specified elements

Example
.menu ul table


Here the menu class applies to all ul & table elements.
 
Share this answer
 
v2
Comments
shanawazway 7-Jul-10 8:48am    
gratefull if u can expplain me the line of code, bcoz it have space and comma also

ul.AspNet-Menu li a, ul.AspNet-Menu li span Smile
{
display: block;
text-decoration: none;
}

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900