Home>Article>Web Front-end> How to achieve horizontal arrangement of text in css

How to achieve horizontal arrangement of text in css

William Shakespeare
William Shakespeare Original
2021-07-22 11:36:52 12088browse

How to realize horizontal text arrangement in css: first create an HTML sample file; then create a p tag; and finally use the "writing-mode: horizontal-tb;" attribute to realize horizontal text arrangement.

How to achieve horizontal arrangement of text in css

The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.

How to realize horizontal text arrangement in css?

css to achieve horizontal/vertical text arrangement

##writing-mode: Writing mode

Attribute value Effect horizontal-tb Horizontal arrangement ##vertical-rl vertical-lr For example:
Vertical arrangement, from right to left
Arrange vertically, from left to right

html:

horizontal-tb:横向排列

vertical-rl:纵向排列,从右到左

vertical-lr:纵向排列,从左到右

css:

Achievement effect:
How to achieve horizontal arrangement of text in cssRecommended study: "

css video tutorial

"

The above is the detailed content of How to achieve horizontal arrangement of text in css. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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