There are two important attributes in the style sheet's word processing properties: Writing-mode and Text-align. Let's take a look at their usage first:
1. Writing-mode (Set object writing direction)
Syntax: WRITING-MODE:LR-TB, TB-RL
Parameters: Lr-tb: From left to right, from top down TB-RL: From top down, right to left
Example:
CSS code copy content to clipboard
div {writing-mode:tb-rl;}
2. Text-align (Sets the alignment of the text in the object)
Grammar: Text-align:left, right, center, justify
Parameters: Left: right-aligned right: Align Center: center justify: Justify
Example:
CSS code copy content to clipboard
div {text-align:center;}
And usually the general layout of the idea: the width of the text object can only line the width of the next text, so that lines of text line up to two words to automatically wrap the text, the formation of the need to erect typesetting.
CSS Code copy content to clipboard
- <! DOCTYPE html>
- <meta http-equiv="Content-type" Content="text/html; charset=gb2312 " />
- <title> Vertical Typesetting Example online demo www.jb51.net</title>
- <style>
- body{text-align:Center}
- . shuli{ margin: 0 Auto; width:20px; line-height:24px; border:1px solid #333}
- </style>
- <body>
- <div class="Shuli"> I am a vertical typesetting </div>
- </body>