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. 
Any clues?
__________________
RATE-MY-WEBSITE.com "Free website reviews by real web professionals" Please login or register to view this content. Registration is FREE
|