TAILIEUCHUNG - HTML cơ bản - p 17

144 Chapter 3: Elements of Style In a manner similar to the font property, the various background properties can be combined into one rule using the background property. The ordering is color, image, repeat attachment, and position. For example: body { background: white url() repeat-y static 0px 10px; } This format is encouraged because it is more widely supported among older browsers and is shorter to type. Any property values not specified are given their default values. Text Properties The important CSS properties that affect the appearance of text include textalign, text-decoration, text-indent, text-transform, line-height, letterspacing, word-spacing, white-space, and vertical-align. Unlike the font, background, and some. | 144 Chapter 3 Elements of Style In a manner similar to the font property the various background properties can be combined into one rule using the background property. The ordering is color image repeat attachment and position. For example body background white url repeat-y static 0px 10px This format is encouraged because it is more widely supported among older browsers and is shorter to type. Any property values not specified are given their default values. Text Properties The important CSS properties that affect the appearance of text include text-align text-decoration text-indent text-transform line-height letterspacing word-spacing white-space and vertical-align. Unlike the font background and some other properties there is no shorthand form to combine the various individual properties that set the characteristics of element text. TEXT-ALIGN The text-align property controls the horizontal alignment of content within an element. The permissible values are left right center start end justify and inherit. The justify value instructs browsers to add letter and word spacing to the text so that each line of text except perhaps the last occupies the full width of the element minus any padding and border. The last line of justified text can be controlled with the text-align-last property which accepts the same values as the text-align property. Authors are cautioned to use justified text only in the simplest cases. An element with mixed font families sizes and styles may display poorly in some browsers when the text is justified. TEXT-DECOR ATION This property allows web authors to add certain effects to element text. The permissible values are underline overline line-through blink which browsers are not required to support and inherit. Values can be combined in a single statement. However subsequent settings of the text-decoration property will override any previous rules in effect for the same element. Proposed CSS3 extensions for refining the line that

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.