CSS Tutorial

CSS Style

CSS Layout Style

CSS Float Style

CSS Reference

CSS font-size property




The CSS font-size property set a font size(like small,mediam,large, or set pixel size etc..) of an element.


Property Values


Properties Value Description
Syntax font-size:value;
value   small
  medium
  large
  Size_px
  larger
  smaller
Allow to All elements
Inherited Yes

Example-Code:

<p style="font-size:18px">font size 18 pixel</p>
Online Try This Code Your Self....   »

Example-Result:

font size 18 pixel