Cant use attribute selectors on html tag
Not so long ago I discovered CSS attribute selectors and it was a revelation to me. No more need to add extra classes or IDs if we can use the attribute hooks to pinpoint a piece of html to style.
for example
Code:
a[title="hide me"]{display:none}will remove anything from the page with the title attribute "hide me".
Terrific stuff.
However, today I have been trying to use the <html xml:lang> attribute
to target a particular language version to style.
What I want to do is something like this
Code:
html[xml:lang="en"] a[title="hide me"]{display:none}to hide a link from the English language version only.
But it doesn’t seem to work. :confused:
Any clues?
View full post on Tycoon Talk
Attribute, Can't, Html, selectors