Sách CSS/Phần tử/Thuộc Tính Chữ (Text)

Tủ sách mở Wikibooks

Thuộc Tính Chữ (Text)[sửa]

    • color: rgb(255,255,0)|blue
    • text-align:left|right|center|justify
    • text-decoration:none|underline|overline|line-through|blink
    • text-indent:length|%
    • direction:ltr|rtl
    • line-height:normal|number|length|%
    • letter-spacing:normal|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

Thí dụ[sửa]

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