Friday 12 July 2013

CSS properties for text

Written By:-Avinash Malhotra
Our Website:- Tech Altum

Here are the various CSS Properties for HTML Textual tags


CSS Property Name Value
COLOR Any color name or hexadecimal code
FONT-SIZE Pixels
%
em
pt
16px=100%=1em=12pt
FONT-WEIGHT Bold,
Bolder,
any value between 100 to 900
TEXT-DECORATION None
Underline
Overline
Line-through
Blink, works only in Firefox
WIDTH Width of text; by default it will be 100%
HEIGHT Height of text; depend on height of character.
TEXT-ALIGN Left
Right
Center
Justify
HEIGHT Height of text;     depend on height of character.
OVERFLOW Auto;              to scroll text in same div
hideen;            to hide text when content is more
BACKGROUND Can be any background color or image
LINE HEIGHT Shows the height of line
TEXT INDENT It shows indentation of the first line in a text.

No comments: