CSS Text Size
Chapter - 16 : Text Color, Size and Other Decorations (CSS Text Size): (Page 2/2)
(Cotinued from previous page)
ix)
text-align:left; The text will be left align in page / division
x)
text-align:justify; The text will fit in the whole width of page / division by
adjusting the space between words
xi)
text-decoration:underline; All text will be under lined
xii)
text-decoration:blink; All the text will blink
xiii)
text-decoration:overline; All text will have a line over them
xiv)
text-decoration:line-through; All text will have a line through them
xv)
text-decoration:none; All text decoration will be cancelled
NOTE : To avoid the resizing problem with Internet Explorer some web developer uses the 'em' in place of px. The size can be defined by 'em' in place of pixels.
The default text size in browsers is 16px and 1em.
Therefore the size in em can be calculated by
1em = pixels/16
e.g.
body {font-size:100%;}
p {font-size:1.5em;}
h1 {font-size:3em;}
©
funandhobby.com (CSS Text Size)