The Direction and Unicode-Bidi Properties


To make the World Wide Web truly worldwide, browsers must be able to display pages in many languages. Western languages of which English is an example are written from left to right. Other languages for example, Hebrew and Arabic are written from right to left. So far, so good. However, pages written in right-to-left (rtl) languages often include content written left-to-right (ltr). In Arabic, for example, numbers are written ltr just like in English and lines therefore contain both ltr and rtl content. This is called bi-directional content, or "bidi" for short. Bidi is a fascinating topic, that tends to interest people who are interested in fonts.

Two CSS properties give authors fine-grained control over bidi: direction and unicode-bidi. Web authors normally do not need to use them because characters are automatically placed in their normal direction. If, however, you need to make exceptions to the rules that govern bidi content, these properties are your solution. If this unlikely event occurs, we suggest you read the full definition of these properties in the CSS 2.1 specification. For reference purposes, we include the formal definition of the properties.

Name:

direction

Value:

ltr | rtl

Initial:

ltr

Applies to:

all elements

Inherited:

yes

Percentages:

N/A


Name:

unicode-bidi

Value:

normal | embed | bidi-override

Initial:

normal

Applies to:

all elements

Inherited:

no

Percentages:

N/A




Cascading Style Sheets(c) Designing for the Web
Cascading Style Sheets: Designing for the Web (3rd Edition)
ISBN: 0321193121
EAN: 2147483647
Year: 2003
Pages: 215

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net