SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2003
    Location
    the Netherlands
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS Validator confuses me

    Why does the CSS validator tell me that
    Code:
    border: 1px solid transparent !important;
     border: none;
    is invalid?

    It returns the following error:
    Code:
    Invalid number : borderToo many values or values are not recognized : 1px solid transparent
    and replaces the 2 aforementioned rules with
    Code:
    border: medium none inherit;
    Danny Bessems - Online-Roleplaying.commodities

    So You've Won The Argument; That Doesn't Mean You're Right!

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    I don't think "transparent" is a valid border color.

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 2003
    Location
    the Netherlands
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    According to the w3 specs on CSS2.1 (so I don't know about CSS2):

    The 'border-color' property sets the color of the four borders. Values have the following meanings:

    <color> Specifies a color value.
    transparent The border is transparent (though it may have width).


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
  •