CSS to achieve text vertical effect:
In the current people are accustomed to the horizontal arrangement of text, but the vast majority of friends also know, in ancient China's text is vertical arrangement, this chapter through the code example to introduce how to achieve vertical arrangement of text, such requirements in the actual application is also some.
The code is as follows:
<!DOCTYPE HTML> <HTML> <Head> <MetaCharSet= "Utf-8"> <Metaname= "Author"content= "http://www.softwhy.com/" /> <title>Ant Tribe</title> <styletype= "Text/css">#webfx{position:Absolute;background:Red;Top:50px; Right:100px;width:100px;Writing-mode:TB-RL;-webkit-writing-mode:VERTICAL-RL;}</style></Head><Body><DivID=WEBFX>Ant Tribe welcomes You</Div></Body> </HTML>
The above code implements the text vertical effect, but there is a large compatibility problem.
All browser-compatible vertical effects can be found in the section on how CSS implements text vertical effects .
The original address is: CSS to achieve a text vertical effect of the chapter.
The owning website is: div CSS Tutorial.
CSS to achieve vertical text effect