...

View Full Version : quick help with 3 css validation errors



crusoe
05-09-2006, 01:59 AM
Im validating my CSS and im getting 3 errors...and i cant think of how to fix them.

this is my css (the parts that the validator is iffy about)

CSS

img.left{
padding:3px 5px 5px 0px;
align:left;
}

#nav a {

float; left;
display: block;
margin:0 1px 0 0;
padding: 4px 8px 0 0;

color:#333;

text-decoration:none;
border: 1px solid #000000;
border-bottom:none;
background:#ffffff url(images/onbg.png) repeat-x top left;
}

And these are the 3 errors im getting...

Errors
URI : file://localhost/style2.css

* Line: 65 Context : img.left

Property align doesn't exist : left
* Line: 128 Context : #nav a

Invalid number : float Parse Error - float
* Line: 128 Context : #nav a

Invalid number : left Parse Error - left



any clue guys?

_Aerospace_Eng_
05-09-2006, 02:03 AM
There is no align property and you used a ; on float

img.left{
padding:3px 5px 5px 0px;
}

#nav a {

float: left;
display: block;
margin:0 1px 0 0;
padding: 4px 8px 0 0;

color:#333;

text-decoration:none;
border: 1px solid #000000;
border-bottom:none;
background:#ffffff url(images/onbg.png) repeat-x top left;
}

crusoe
05-09-2006, 02:30 AM
cheers ive fixed the #nav problem but im not sure what you mean about theres no align propert (im kinda new to it) ive got an image that i want to align to the right of the div with text flowing down its left side. it works but i get the validation error.

crusoe
05-09-2006, 02:32 AM
ignore that. i got it. thanx for the help



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum