22.12.2013 Views

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

16.3.1 Underlining, overlining, striking, and blinking:<br />

the ’text-decoration’ property<br />

’text-decoration’<br />

Value: none | [ underline || overline || line-through || blink ] | inherit<br />

Initial: none<br />

Applies to: all elements<br />

Inherited: no (see prose)<br />

Percentages: N/A<br />

Media: visual<br />

This property describes decorations that are added to the text of an element. If<br />

the property is specified for a block-<strong>level</strong> [p. 97] element, it affects all inline-<strong>level</strong><br />

descendants of the element. If it is specified for (or affects) an inline-<strong>level</strong> [p. 98]<br />

element, it affects all boxes generated by the element. If the element has no<br />

content or no text content (e.g., the IMG element in HTML), user agents must<br />

ignore [p. 42] this property.<br />

Values have the following meanings:<br />

none<br />

Produces no text decoration.<br />

underline<br />

Each line of text is underlined.<br />

overline<br />

Each line of text has a line above it.<br />

line-through<br />

Each line of text has a line through the middle<br />

blink<br />

Text blinks (alternates between visible and invisible). Conforming user<br />

agents [p. 32] are not required to support this value.<br />

The color(s) required for the text decoration should be derived from the ’color’<br />

property value.<br />

This property is not inherited, but descendant boxes of a block box should be<br />

formatted with the same decoration (e.g., they should all be underlined). The<br />

color of decorations should remain the same even if descendant elements have<br />

different ’color’ values.<br />

Example(s):<br />

In the following example for HTML, the text content of all A elements acting as<br />

hyperlinks will be underlined:<br />

A[href] { text-decoration: underline }<br />

16.3.2 Text shadows: the ’text-shadow’ property<br />

’text-shadow’<br />

239

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!