?
Solved

Errors when validating CSS

Posted on 2014-03-04
6
Medium Priority
?
290 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 53

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
WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

 
LVL 53

Assisted Solution

by:Scott Fell, EE MVE
Scott Fell,  EE MVE earned 2000 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 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
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…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

777 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