CSS Validating Error!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • justin scott
    New Member
    • Oct 2010
    • 2

    #1

    CSS Validating Error!

    You have 1 CSS Errors

    http://zenzian.com/templates/theme338/css/template.css

    Line: 1077 Context: #wrapper

    Value Error : background (http://www.w3.org/TR/REC-CSS2/colors.html#pro pdef-background) Too many values or values are not recognized : url(../images/right-bg.gif) repeat-y right 0 #fff



    Can anyone assist me on how to repair this issue.
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    The color should be the first value after the colon.

    Comment

    • justin scott
      New Member
      • Oct 2010
      • 2

      #3
      thanks for the response.

      Could you maybe put in text how it should read as this is unfamiliar to me. Thanks

      Comment

      • thesmithman
        New Member
        • Aug 2008
        • 37

        #4
        Hi Justin,
        I think the good doctor was suggesting you might want to rearrange your declaration thus:

        Code:
        .yourclass{
        background:#fff url(../images/right-bg.gif) repeat-y right;
        }
        as the #fff in your declaration is the color.

        I might also question what the 0 is intended to do. In the error message you related above, there is a 0 before the #fff. The background declaration can be used to specify color, image, repeat, position, and attachment (attachment is often omitted). Color is a hexadecimal or named css color; image is a url; repeat can be repeat-x, repeat-y, or no-repeat; position is top, bottom, left, right, or center; and attachment is often omitted, but can be set to fixed or scroll. I don't think a value of 0 is allowed for any of these. That could be your problem.

        Best of luck, and happy coding!

        Comment

        Working...