which css class takes effect?

Joined
Apr 15, 2007
Messages
4
Reaction score
0
Hi gurus,
This code snipet:
div#top_menu_block /* 1st */
{
position:absolute;
top:-23px;
left:6px;
height:23px;
border:0px solid red;
}
div#top_menu_block ul /* 2nd */
{
position:relative;
margin-left:auto;
margin-right:auto;
margin-top:0px;
margin-bottom:0px;
padding:0px;
width:auto;

}
div#top_menu_block ul li /*3rd */
{
position:relative;
list-style:none;
float:left;
width:108px;
height:23px;
}
I don't understand the meaning of 3 top_menu_block.
1: What does each of the top_menu_block mean? ( I am not asking the meaning of the inside contents).
2: Is the 1st one for div element, the 2nd for ul element in div but not for any div element?
3: If a ul element is inside a div element, which( 2nd or the 3rd ) will takes effect?
Thanks alot.
CHarlie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top