Sách CSS/Thuộc Tính Chữ (Text)

Tủ sách mở Wikibooks

Định dạng thuộc tính dòng chữ , Text , của một phần tử mạng

Cú pháp[sửa]

Phần tử - Thuộc tính : Giá trị


Tham số và giá trị
text-align:left|right|center|justify
text-decoration:none|underline|overline|line-through|blink
text-indent:length|%
text-shadow:none|color|length
text-transform:none|capitalize|uppercase|lowercase
unicode-bidi]]:normal|embed|bidi-override
white-space]]:normal|pre|nowrap
word-spacing]]:normal|length
color:rgb(255,255,0)|blue
direction:ltr|rtl
line-height:normal|number|length|%
letter-spacing:normal|length

Thí dụ[sửa]

p { 
    color: blue;
    text-align: center;
    text-decoration: underline;
}