Solved

Errors when validating CSS

Posted on 2014-03-04
6
267 Views
Last Modified: 2014-03-07
Hi All

I am getting errors when validating my css file with W3c.  I have attached a copy of my error output and css so you can see them.  

Not sure if I should just ignore them or get my web developer to fix.  Maybe if it is a easy fix I can do it?

Cheers

Si
css-vaildate.jpg
stylesv1.css
0
Comment
Question by:cybersi
  • 3
  • 2
6 Comments
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39902918
It's because you can just use the border-radius now and don't need to add the vendor prefix.  It is fine as is or you can take it out.  This is not something to obsess over.
0
 

Author Comment

by:cybersi
ID: 39903103
Hi Scott

Which part can I remove and will it affect the look of my page?

Cheers

Si
0
 
LVL 16

Expert Comment

by:hankknight
ID: 39903217
Most of the errors are harmless.  The first 8 errors should be ignored.  Leave that code there for maximum browser compatibility.   The last error (the parse error) is a problem.

You should totally remove this line from your CSS file:
<style type="text/css">
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 52

Assisted Solution

by:Scott Fell, EE MVE
Scott Fell,  EE MVE earned 500 total points
ID: 39903219
#nav li ul {
	position: absolute;
	width: 135px;
	left: -999em;
	top: 68px;
	margin:0;
	padding:0;
	list-style-type: none;
	background-color: #0661ec;
	background-color: rgba(6,97,236,0.8) !important;
	border: 1px solid #fff;
	border-top:none;
        /* comment out these 4 lines 
	-webkit-border-bottom-right-radius: 3px;
	-webkit-border-bottom-left-radius: 3px;
	-moz-border-radius-bottomright: 3px;
	-moz-border-radius-bottomleft: 3px;
        */
	border-bottom-right-radius: 3px;
	border-bottom-left-radius: 3px;
}

Open in new window

0
 
LVL 16

Expert Comment

by:hankknight
ID: 39903890
If you remove or comment out these lines:

      -webkit-border-bottom-right-radius: 3px;
      -webkit-border-bottom-left-radius: 3px;
      -moz-border-radius-bottomright: 3px;
      -moz-border-radius-bottomleft: 3px;

then the CSS will not work on old versions of Firefox or Chrome.  I would leave those lines unchanged.

However, you should totally remove this line from your CSS file:
<style type="text/css">

Open in new window

0
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39903924
The border radius should work on all browsers except ie8 and lower.  I think even google stopped supporting ie8 in 11/2012.    You no longer need the vendor prefix.  Like I said, it is not worth obsessing over the error if you leave it in.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now