O'Reilly logo

CSS Quick Syntax Reference by Mikael Olsson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 11

image

Text

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

This property enables ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required