Validation Question
Posted: 13 September 2006 04:21 PM   [ Ignore ]
Newbie
Rank
Total Posts:  3
Joined  2006-08-25

Hi, I am learning CSS and training to validate my site at w3.org. 
It validated, however I received a few warnings.  How critical are these warnings?

The only warnings that I don’t understand are the “redefinition” warnings.  What can I do to change these, if needed?
 
Thanks

Line : 20 (Level : 2) Redefinition of margin-top : #container
Line : 22 (Level : 1) You have no color with your background-color : #container
Line : 35 (Level : 1) You have no color with your background-color : #navcontainer
Line : 54 (Level : 2) Redefinition of padding-right : #navcontainer ul li a
Line : 57 (Level : 2) Redefinition of padding-top : #navcontainer ul li a
Line : 75 (Level : 2) Redefinition of padding-bottom : #content p

#container{
 
marginauto;
 
margin-top25px;
 
width760px;
 
background#ffffff;
 
border1px solid #6785b3;
        
}


#navcontainer ul li a{
  
text-decorationnone;
  
padding10px;
  
padding-right10px;
  
color#fff;
  
background-color#6785b3;
  
padding-top5px;
 
Profile
 
 
Posted: 15 September 2006 01:07 AM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  18
Joined  2005-07-19

Hello, the reason for redefinitions are because you are ‘defining’ again what you already defined.  When you defined the margin as auto, that set a definition for it to be a certain set of values, then you defined them again.  Whether you did it on purpose or not, it redefined the margin property.  The same for the padding issue.  You defined all sides as 10px, then defined each one separately, that just sends up a flag to say you did that, if it works for you, just ignore the warnings, if you didn’t…well, they’re doing their job.

-Pete

Profile