View Single Post
  #1 (permalink)  
Old January 10th, 2012, 07:50 PM
vbboyd vbboyd is offline
Friend of Wrox
Points: 1,905, Level: 17
Points: 1,905, Level: 17 Points: 1,905, Level: 17 Points: 1,905, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default CSS ID selectors

I was reviewing your book on CSS. I was wondering when it comes to ID selectors like:
#hero
{
width 78%;
margin: 5px auto;
}

and

#hero p
{
padding-right: 0;
padding-left: 10px;
}

and then.....

#hero nav
{
width 396px;
height 75px;
}

They both look same but different. How are they alike and how are they different?
Reply With Quote