Friday, June 18, 2010

Fonts : Setting The Fonts In Your Page - Font Size

In this article we will talk about Font Size:

The font-size rule sets the size of the fonts in the element. You can express the size using an absolute measurement or a relative measurement. For example, the following rule (in a STYLE tag or in a style sheet file) sets the font size of

elements to an absolute size of 80 points:

H2 {font-size:80pt}
which gives us this

:

Hi There

Relative font sizes allow you to specify font size relative to the surrounding text. For example, this rule sets the font of elements to 180% the size of the surrounding text, making elements a little more phasized:

EM {font-size:180%}

So this string that uses
 
That is a groovy idea!

looks like this:
That is a groovy idea!

No comments:

Post a Comment