The default arrangement of text in HTML is horizontal, but in some special cases, the text needs to be arranged vertically. Single line text vertical arrangement .onecn{ width: 20px; margin: 0 auto; line-height: 24px; } .oneen{ width: 15px; margin: 0 auto; line-height: 24px; font-size: 20px; word-wrap: break-word;/*You need to add this sentence when writing in English to automatically wrap the line*/ word-break:break-all; } Note: To arrange text in a single line vertically, you only need to set the width to just accommodate one font. Multiple lines of text arranged vertically .two{ margin: 0 auto; height: 140px; writing-mode: vertical-lr;/*From left to right and from right to left is writing-mode: vertical-rl;*/ writing-mode: tb-lr;/*IE browser's left to right and right to left is writing-mode: tb-rl;*/ } Note: Height is very important. If you need to control the spacing between text and lines, you can add the attributes letter-spacing and line-height. The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. |
<<: How to install redis in Docke
>>: 9 Practical Tips for Creating Web Content Pages
Table of contents 1. The role of index 2. Creatin...
Preface When we write web pages, we will definite...
Download MySQL https://dev.mysql.com/downloads/my...
1. Modify the firewall configuration file # vi /e...
MySQL download and installation (version 8.0.20) ...
During my internship in my senior year, I encount...
Table of contents 1. Ubuntu source change 2. Inst...
Table of contents 1. Routing Configuration 2. Vue...
Because the Base images pulled by Docker, such as...
Table of contents Write in front Business code us...
When writing the HTTP module of nginx, it is nece...
MySQL replace and replace into are both frequentl...
The fixed layout of the page header was previousl...
How to write judgment statements in mysql: Method...
Preface Under the influence of some CSS interacti...