© Mikael Olsson 2019
Mikael OlssonCSS3 Quick Syntax Referencehttps://doi.org/10.1007/978-1-4842-4903-1_11

11. Text

Mikael Olsson1 
(1)
Hammarland, Finland
 

The text properties serve to format the visual appearance of text content.

color

The color property sets the color of text by using either one of the color notations. By default, its value is set to inherit, meaning that it inherits the color of its parent element.
color : inherit | <color>
The initial value is black for all major browsers. In the following example rule, paragraphs are colored blue:
p { color: #00f; }

text-transform

text-transform controls text casing. Possible values are listed as follows, with none as the initial value:
text-transform : inherit | none | uppercase | lowercase | capitalize ...

Get CSS3 Quick Syntax Reference: A Pocket Guide to the Cascading Style Sheets Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.