Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6985061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:37:52+00:00 2026-05-27T18:37:52+00:00

Can someone tell me why the following css is not validating? I’ve been trying

  • 0

Can someone tell me why the following css is not validating? I’ve been trying to research this myself with no luck. All of the documentation I’ve read says this is the proper why to do gradients in css3.

#header {
  color: white;
  font-size: 12px;
  font-family: Helvetica, Verdana, Arial, sans-serif;
  background: black;
  background: -moz-linear-gradient(top,  rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.65)), color-stop(100%,rgba(0,0,0,0)));
  background: -webkit-linear-gradient(top,  rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%);
  background: -o-linear-gradient(top,  rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%);
  background: -ms-linear-gradient(top,  rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%);
  background: linear-gradient(top,  rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%);
  width: 100%;
  height: 35px;
  margin-top: 0px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px;
  position: fixed;
  top: 0px;
  z-index: 1000;
}

These are the validation errors I’m getting:

W3C CSS Validator results for TextArea (CSS level 3)

Sorry! We found the following errors (6)

URI : TextArea

6 #header Value Error : background-color
-moz-linear-gradient(top,rgba(0,0,0,0.65 ) 0%,rgba(0,0,0,0 ) 100% ) is not a background-color value :
-moz-linear-gradient(top,rgba(0,0,0,0.65 ) 0%,rgba(0,0,0,0 ) 100% )

7 #header Value Error : background-color -webkit-gradient(linear,left
top,left bottom,color-stop(0%,rgba(0,0,0,0.65 )
),color-stop(100%,rgba(0,0,0,0 ) ) ) is not a background-color value :
-webkit-gradient(linear,left top,left bottom,color-stop(0%,rgba(0,0,0,0.65 ) ),color-stop(100%,rgba(0,0,0,0
) ) )

8 #header Value Error : background-color
-webkit-linear-gradient(top,rgba(0,0,0,0.65 ) 0%,rgba(0,0,0,0 ) 100% ) is not a background-color value :
-webkit-linear-gradient(top,rgba(0,0,0,0.65 ) 0%,rgba(0,0,0,0 ) 100% )

9 #header Value Error : background-color
-o-linear-gradient(top,rgba(0,0,0,0.65 ) 0%,rgba(0,0,0,0 ) 100% ) is not a background-color value : -o-linear-gradient(top,rgba(0,0,0,0.65
) 0%,rgba(0,0,0,0 ) 100% )

10 #header Value Error : background-color
-ms-linear-gradient(top,rgba(0,0,0,0.65 ) 0%,rgba(0,0,0,0 ) 100% ) is not a background-color value : -ms-linear-gradient(top,rgba(0,0,0,0.65
) 0%,rgba(0,0,0,0 ) 100% )

11 #header Value Error : background-color
linear-gradient(top,rgba(0,0,0,0.65 ) 0%,rgba(0,0,0,0 ) 100% ) is not
a background-color value : linear-gradient(top,rgba(0,0,0,0.65 )
0%,rgba(0,0,0,0 ) 100% )

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:37:52+00:00Added an answer on May 27, 2026 at 6:37 pm

    This is a duplicate of: CSS background gradient validation

    A good explanation is:

    “Valid” is a very fluid term in regards to CSS3 in modern web design /
    development.

    If you tried to validate ‘this’ code in W3C’s CSS3
    Validator, it will show a bunch of parsing errors. This is due to the
    nature of CSS3 implementation at the moment, and mainly because of the
    vendor prefixes required to create CSS3 gradients.

    Now on the flip
    side, we have used correct and “valid” syntax according to the
    browser vendors for these gradients. The fact that W3C has yet to
    finalize the CSS3 specifications means until then we will not have a
    concrete answer as to what is valid or invalid when it comes to CSS3.
    All we can do right now is follow progressive enhancement techniques,
    and pay attention to the browser vendors for direction and proper
    implementation of CSS3.

    http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-understanding-css3-gradients/comment-page-1/#comment-243334

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone tell me please why the following example work in Firefox but not
Can someone tell me why the following does not match: >>> re.search(r'(\d{2, 10})', '153')
Can someone tell me why this is not working? Throughout my document I have
I have been trying out some basic exercises involving loops. Can someone tell me
can someone tell me why the following behavior occurs (Oracle 10.2): SQL> create table
Can someone tell me how I can make the following output? I have a
Can someone please tell me how I can implement the following line of pseudo-code.
Can someone tell me how to change directories using FtpWebRequest? This seems like it
Can someone tell what is wrong with this query? sqltext = SELECT utyp, count(*)
Can someone tell me what the code equivelant in VB.Net to this C# code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.