How to make horizontal words stand up in css

藏色散人
Release: 2020-12-17 16:36:05
Original
3203 people have browsed it

How to use css to stand up horizontal words: First create an HTML sample file; then define a div text; and finally set the css style to "{width: 20px;margin: 0 auto;line-height: 24px;}" to stand the text up.

How to make horizontal words stand up in css

The operating environment of this tutorial: windows7 system, css3 version. This method is suitable for all brands of computers.

Recommended: "css video tutorial"

1. The vertical arrangement of a sentence

As shown in the figure:

How to make horizontal words stand up in css

   test  
我是竖列排版
I AM ENGLISH
Copy after login

2. Multiple sentences arranged vertically (such as ancient poems)

As shown:

How to make horizontal words stand up in css

   test  
欲话毗陵君反袂,欲言夏口我沾衣。谁知临老相逢日,悲叹声多语笑稀。
I AM ENGLISH
Copy after login

3. The fonts are horizontally aligned, The overall vertical layout

is shown in the picture:

How to make horizontal words stand up in css

   test  
欲话毗陵君反袂
ENGLISH
Copy after login

The above is the detailed content of How to make horizontal words stand up in css. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
css
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!