Thread: css validation

    #1
  1. No Profile Picture
    Give peace a chance.
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Location
    Buenos Aires, Argentina
    Posts
    83
    Rep Power
    15

    Unhappy css validation


    Ok, I could check the validity of my css file, and I've got this warnings, what do they mean:


    URI : http://209.99.230.188/ASAPlate/web/asaplate.css

    Line : 3 Level : 1 You have no color with your background-color : body
    Line : 9 Level : 1 You have no background-color with your color : a:link
    Line : 23 Level : 1 You have no background-color with your color : a:visited
    Line : 30 Level : 1 You have no background-color with your color : a:hover
    Line : 99 Level : 1 You have no color with your background-color : table.main
    Line : 104 Level : 1 You have no color with your background-color : td.menu
    Line : 112 Level : 1 You have no color with your background-color : td.body
    Line : 117 Level : 1 You have no color with your background-color : body.alternate
    ???
    thank you
  2. #2
  3. No Profile Picture
    Senior Member
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Nov 2001
    Location
    Boston Ma.
    Posts
    1,529
    Rep Power
    0
    Hi............


    It clearly tell's you what is wrong.............


    Line : 3 Level : 1 You have no color with your background-color : body

    error text color is missing from body...........

    If you use a (BACKGROUND-COLOR) you must list a (TEXT COLOR)

    Code:
    body { 
          BACKGROUND-COLOR: #000000; 
          COLOR: #FFFFFF; 
          FONT-FAMILY: Tahoma, san-serif; 
          FONT-SIZE: 11px; 
          MARGIN: 20px 20px 0px 20px
    }

    F!
  4. #3
  5. No Profile Picture
    Give peace a chance.
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Location
    Buenos Aires, Argentina
    Posts
    83
    Rep Power
    15

    no color


    The validator asks me to specify the background color for everything, for example a:hover. but I don't want to specify a background color for it, I would like it to take it from the object it is in, or be transparent, how should I do that ?
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Posts
    28
    Rep Power
    0
    like so:
    Code:
    a:hover {
        color: #f00;
        background-color: transparent;
    }

IMN logo majestic logo threadwatch logo seochat tools logo