Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

list-style-type can be set to NONE in CSS3?

list-style-type can be set to NONE in CSS3?

Problem

I'm validating this CSS via W3C validator:

#breadcrumbs {
  list-style-type: none;
  padding-left: 0;
}

and getting this output:

Value Error : list-style-type none is not a list-style-type value : none

What's wrong with value none here?

Problem courtesy of: yegor256

Solution

Yes, list-style-type: none is valid in CSS3, as in CSS 2.1. This applies both to the most recent working draft as well as the current editor’s draft of the CSS Lists and Counters Module Level 3.

But the validator has a bug here; it was reported just two days ago: Bug 19927 - list-style-type does not validate. It seems that the bug is more extensive than originally reported; even list-style-type: disc fails!

The Validator Bug does not affect browser behavior of course. You can keep using list-style-type: none.

Update: The validator bug has now been fixed.

Solution courtesy of: Jukka K. Korpela

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

list-style-type can be set to NONE in CSS3?

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×