font-size

font-size
CSS font-size Property
The CSS font-size property is used to specify the size of text inside of elements.
CSS CODE EXAMPLE
<style type="text/css">
#p1 { font-size: 12px; }
#p2 { font-size: larger; }
#p3 { font-size: x-large; }
#p4 { font-size: 200%; }
</style>
<p id="p1">Paragraph content ...</p>
<p id="p2">Paragraph content ...</p>
<p id="p3">Paragraph content ...</p>
<p id="p4">Paragraph content ...</p>
 
Paragraph content ...
Paragraph content ...
Paragraph content ...
Paragraph content ...

Possible Values:

Pixel length
Example: "20px"

Absolute size keyword
xx-small •• x-small •• small •• medium •• large •• x-large •• xx-large

Relative size keyword
smaller •• larger

Relative percentage
Specify a percentage number that will be relative to the parent element's font size

0 Response to "font-size"

Post a Comment