views:

35

answers:

1

Why W3C Validator showing parsing error on this. I selected CSS3 profile also from dropdown.

a[href $=.xls]{background: transparent url(ms-excel-icon.gif) left top no-repeat;
padding-left: 22px;display: block;height: 16px;}

alt text

A: 

They have a nearly identical example up on the W3C site

a[href$=".html"]

with the only difference being that there's no white space between the attribute name and the constraint type and the constraint itself is in quotes.

R0MANARMY
still showing error after using this `a[href$=.xls]{background: transparent url(ms-excel-icon.gif) left top no-repeat;padding-left: 22px;display: block;height: 16px;}`
metal-gear-solid
@metal-gear-solid: In that case I have no idea, it looks like they have a nearly identical example on the site `a[href$=".html"]`. Maybe try putting it in quotes?
R0MANARMY
@R0MANARMY - Thanks - yes now error is gone after this `a[href$=".html"]`
metal-gear-solid
Keep in mind that the W3C CSS validator, like all software, occasionally presents bugs. (not saying this is one, but you should be aware :p)
reisio