CSS2 Text Properties Reference Guide

CSS2 Text Properties Reference Guide

This is a complete reference guide for web developers, listing all text-related CSS properties defined in the World Wide Web Consortium’s Cascading Style Sheets Level 2 Recommendation.

Click on any property to see its description and example –

Sr.No. Property and Description
1 color Sets the color of an element.
2 direction defines the direction of flow of the element’s content.
3 line-height sets the distance between adjacent text baselines.
4 text-align sets the element’s text alignment style.
5 text-decoration Defines any decorative effect for text; values ​​can be combined.
6 text-indent Defines the indent of the first line of text in an element; the default is 0.
7 text-shadow Creates text shadows with different colors and offsets.
8 text-transform Transforms the text within an element as required.
9 vertical-align Sets the vertical positioning of an element.
10 white-space Defines how whitespace is handled within an element.
11 word-spacing Inserts extra spaces between words.

Leave a Reply

Your email address will not be published. Required fields are marked *