|
Text properties change the text's appearance
and placement, such as the line-height, text decoration, vertical-align,
and text-align. The word spacing and letter spacing properties
can make letters wider or squeezed more tightly next to each
other. The Text-Transform property can be set to capitalize,
uppercase or lowercase.
Example
<STYLE>
H1 {text-align: center;
Letter-spacing: .5em;
Background: green;
Color: yellow;
Font: normal 20pt "Nueva roman", "lithos regular"}
P {text-align: justify;
Text-indent: 8pt;
Font: 10pt/15pt "Myraid roman", "veranda"}
</STYLE>
In this Exercise you will learn to set the
Text properties in a cascading style sheet.
The style specification highlighted aligns
the text to the center of the page and sets the letter spacing
to 5em.
The style specification highlighted sets
the background and text colors.
The paragraphs are now centered and displayed
in a green background with yellow color font for the text.

Copyrights : Layout Galaxy All Rights Reserved
No part of this tutorial may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, electrostatic, magnetic tape, mechanical or otherwise, without prior permission in writing from Layout Galaxy.
|
|
|