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

, , ,

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Get Adobe Flash playerPlugin by wpburn.com wordpress themes


RSS Site FeedRSS Site Feed

© 1992-2011 DC2NET™, Inc. All Rights Reserved