W3C home > Mailing lists > Public > www-style@w3.org > March 2002

Re: CSS3 - Define Language

From: Rijk van Geijtenbeek <rijk@iname.com>
Date: Sun, 17 Mar 2002 12:53:03 +0100
Message-ID: <1961296637.20020317125303@iname.com>
To: www-style@w3.org
Hello Tantek,

On Sunday, March 17, 2002 you wrote:

[..]

> The _correct_ way to select elements based on language is with the CSS2
> :lang() selector, e.g.

> div:lang(en) {
>       color: black;
>       background-color: white;
> }

> div:lang(es) {
>       color: white;
>       backgorund-color: black;
> }

> Now, as far as implementations, IE5/Mac implements :lang() whereas I don't
> know if any of the other browsers do.  You'll need to try them out and bug
> their vendors accordingly.

Opera doesn't support :lang, but it does support attribute selectors,
so you'd need this styling:

[lang|=en] > * { ...  }
[lang|=no] > * { ...  }



Greetings,
 Rijk                            mailto:rijk@iname.com

Mot du Jour:
Black Holes are Out of Sight
Received on Sunday, 17 March 2002 06:48:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:13 GMT