Get the App
SLTechnology News&Howtos  ›  Development  › 

How does css set the text orientation

Shulou Source: shulou.com Published: 2022-06-02 07:49:25 10月25日 Update

Xiaobian to share with you how to set the text direction of css, I hope you have something to gain after reading this article, let's discuss it together!

In css, you can set the text direction using the direction attribute, with the syntax "direction:ltr/rtl". The direction attribute specifies the direction of text, from left to right when the attribute value is "ltr," or from right to left when the attribute value is "rtl."

Operating environment of this tutorial: Windows 10 system, CSS3 && HTML5 version, Dell G3 computer.

CSS How to Set Text Direction

In css, you can set the direction of text by using the direction attribute, which specifies the direction of text.

The values for this attribute are as follows:

Examples are as follows:

p.one{direction: rtl}p.two{direction: ltr}12 34 56

12 34 56

Output:

After reading this article, I believe you have a certain understanding of "how to set the text direction of css". If you want to know more relevant knowledge, welcome to pay attention to the industry information channel. Thank you for reading!

Tags: Text orientation attributes articles settings functions done that is tutorials more environment computers knowledge examples systems results industry grammar information information channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Apple MySQL Shulou Information Linux