Sandy wrote:

> Is this the correct syntax for the language declaration <span 
> lang="fr">je ne sais quoi</span>

Yes.

> Does the language declaration has to be in a span? Is it possible to 
> do it like this <span class="french">je ne sais quoi</span> and have 
> a style on an external style sheet link

Any element will do.

In the stylesheet, target the element with span:lang(fr){/*styles*/} or
whatever element you choose. A universal selector will also do, like
*:lang(fr){/*styles*/}, as long as you make sure you target the document
area you want, like for example #content *:lang(fr){/*styles*/}.

Note that IE7 and older don't support :lang(). IE8 and others are fine.

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to