direction

English [dəˈrekʃn] US [dɪˈrɛkʃən, daɪ-]

n. Direction; trend; aspect; usage instructions

css direction property syntax

Function: The direction attribute specifies the direction/writing direction of the text.

Description: This attribute specifies the basic writing direction of the block, as well as the embedding and overlay directions for the Unicode bidirectional algorithm. User agents that do not support bidirectional text may ignore this attribute.

Note: All browsers support the direction attribute. The attribute value "inherit" is not supported in any version of Internet Explorer (including IE8).

css direction property example

<html>
<head>
<style type="text/css">
div.one
{
direction: rtl
}
div.two
{
direction: ltr
}
</style>
</head>
<body>
<div class="one">Some text. Right-to-left direction.</div>
<div class="two">Some text. Left-to-right direction.</div>
</body>
</html>
Run instance »

Click the "Run instance" button to view the online instance