Results 1 to 9 of 9

Thread: CSS Validation Errors Help if Possible

  1. #1
    Join Date
    Oct 2009
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile CSS Validation Errors Help if Possible

    Hi,
    I was wondering if anyone could help with these validation errors when I run my site with the built in site checker in Dreamweaver CS3,can anyone advise on any alternatives or should I ignore any of these, I would appreciate any help,

    These are my Global CSS Style Sheet errors:
    table {
    border-collapse: collapse;
    width: 100%;
    border: 2px solid #666666;
    border-spacing: 0;
    Unsupported Property:border-spacing in IE6 and 7


    .photoAlbum {
    vertical-align: top;
    display: inline;
    float: left;
    width: 143px;
    margin-top: 0px;
    margin-right: 10px;
    margin-bottom: 20px;
    margin-left: 0px;
    background-color: #FFFFCC;
    padding-top: 5px;
    padding-right: 5px;
    padding-bottom: 10px;
    padding-left: 5px;
    border: 1px solid #FFFFFF;
    color: #FFFF66;
    }
    Unsupported Value: top Affects IE for Macintosh 5.2

    These are my Lightbox copied CSS Style Sheet errors:

    #hoverNav a{ outline: none;} affects Netscape 8.0

    #imageData #bottomNavClose{
    width: 66px;
    float: right;
    padding-bottom: 0.7em;
    outline: none;
    }
    Unsupported Property: outline affects affects IE6 and IE7

    Many Thanks,
    Nick C

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    This validates for me:
    Code:
    table {
    border-collapse : collapse;
    width : 100%;
    border : 2px solid #666666;
    border-spacing : 0;
    }
    .photoAlbum {
    vertical-align : top;
    display : inline;
    float : left;
    width : 143px;
    margin-top : 0;
    margin-right : 10px;
    margin-bottom : 20px;
    margin-left : 0;
    background-color : #ffffcc;
    padding-top : 5px;
    padding-right : 5px;
    padding-bottom : 10px;
    padding-left : 5px;
    border : 1px solid #ffffff;
    color : #ffff66;
    }
    #hoverNav a {
    outline : none;
    }
    #imageData #bottomNavClose {
    width : 66px;
    float : right;
    padding-bottom : 0.7em;
    outline : none;
    }
    I just removed the non-css comments.

  3. #3
    Join Date
    Oct 2009
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,
    Thanks for reply, could you tell me what you removed if anything please as I see it all as it was when I posted it !

    Thanks,
    Nick C

  4. #4
    Join Date
    Sep 2008
    Location
    Seattle, WA
    Posts
    135
    Thanks
    1
    Thanked 11 Times in 11 Posts

    Default

    Basically you can't have text in your CSS document without using the proper way of commenting it:

    this: #hoverNav a{ outline: none;} affects Netscape 8.0

    should be this: #hoverNav a{ outline: none;} /*affects Netscape 8.0*/

    The /* */ opens and closes your comments and renders them invisible. The validator is thinking they are additional selectors and doesn't recognize them.

  5. #5
    Join Date
    Oct 2009
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,
    I inserted the comments in Notepad to tell you guys why it wasnt validating the comments are not part of my CSS !

    Cheers, NC

  6. #6
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Dreamweaver is crap. Don't listen to it. DW couldn't validate parking.

    Use the W3C... CSS validator and the HTML Validator

    And for cryin out loud, stop using DW. Use notepad. Or Notepadd++, but NOT DW, Frontpage, or {insert other 3rd party "build-a-site" software here}.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  7. #7
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    I agree on the validation but I like Dw as an editor, I guess I'm just used to the color coding. I use Notepad++ if I need to edit something fast since it loads in no time. I know there are better editors with more advanced features, it's just that I don't want to spend a bunch of time learning how it works.

  8. #8
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Yes, but Notepad ++ has color coding, as well as styles to change the default colors.. I currently use the Deep Black style, but the Vibrant Ink and Obsidian are some of my favs as well.

    Not to mention all the add ons and plug ins and style choices. I even have syntax highlighting for AS2, 3 as well as the regular languages.

    It's my favorite editor, but, it is an opinion.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  9. #9
    Join Date
    Apr 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

Bookmarks

Posting Permissions

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