What is the use of the direction attribute in css
Editor to share with you what is the use of the direction attribute in css, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
CSSdirection attribute
Function: the direction attribute specifies the direction of the text / direction of writing.
Description: this direction attribute specifies the basic writing direction of the block, as well as the direction of embedding and overwriting for the Unicode bidirectional algorithm. UA that does not support bidirectional text can ignore this attribute.
Basic syntax:
Direction:ltr | rtl
Ltr: default value, text orientation from left to right.
Rtl: text is oriented from right to left.
Note: all browsers support the direction attribute.
An example of using the CSSdirection attribute
(yisu.com)
Div.ex1 {direction:rtl;}
Some text. The default writing direction.
Some text. Df from right to left.! >
The above is the whole content of this article. I hope it will be helpful to your study.
The above is all the content of the article "what is the use of direction attributes in css". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!