Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Apr 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question quick help with 3 css validation errors

    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?

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    There is no align property and you used a ; on float
    Code:
    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;
    }
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Apr 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    New Coder
    Join Date
    Apr 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ignore that. i got it. thanx for the help


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •