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

Related Posts :

  • font-variant font-variant CSS font-variant Property The CSS font-variant property is used to spec… Read More...
  • font-weight font-weight CSS font-weight Property The CSS font-weight property is used to specify … Read More...
  • height height CSS height Property The CSS height property is used to specify the height sett… Read More...
  • font font CSS font Property The CSS font property is CSS shorthand for specifying fon… Read More...
  • font-style font-style CSS font-style Property The CSS font-style property is used to specify it… Read More...

0 Response to "font-size"

Post a Comment