text
English[tekst] American[tɛkst]
n. Text, original text; text, textbook; theme; version
v .Send a text message
align
##UK[əˈlaɪn] US[əˈlaɪn] vt. Make a line, make an alliance; line up in ordervi. Arrange; form a line
css text-align property syntax
Function:The text-align attribute specifies the horizontal alignment of the text in the element.
Description: This attribute sets the horizontal alignment of the text within the block-level element by specifying the point at which the line box is aligned. The value justify is supported by allowing user agents to adjust the spacing between letters and words in line content; different user agents may get different results.
Note: All browsers support the text-align attribute. The attribute value "inherit" is not supported in any version of Internet Explorer (including IE8).
css text-align property example
<html> <head> <style type="text/css"> h1 {text-align: center} h2 {text-align: left} h3 {text-align: right} </style> </head> <body> <h1>这是标题 1</h1> <h2>这是标题 2</h2> <h3>这是标题 3</h3> </body> </html>
Click the "Run instance" button to view the online instance