CSS :lang pseudo-class
Complete CSS Reference
Definition
The :lang pseudo-class allows the author to specify a language to use in a specified element.
Examples
The :lang pseudo-class allows you to define special rules for different
languages. In the example below, the :lang class defines the type of quotation
marks for q elements with a lang attribute with a value of "no":
<html>
<head>
<style type="text/css">
q:lang(no)
{
quotes: "~" "~"
}
</style>
</head>
<body>
<p>Some text <q lang="no">A quote in a paragraph</q>
Some text.</p>
</body>
</html>
|
Try-It-Yourself Demos
:lang (does not
work in IE)
This example demonstrates the use of the :lang pseudo-class.
Complete CSS Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|