Sets the font size of an element. Font-sizes can be specified by constants of xx-small, x-small, small, medium, large, x-large, xx-large or by units such as px, pt and em or percentages.
Browsers display font-sizes differently and many can override your settings. It is best to use values that can be resized by the browser and allow for this in your site design.
- Font size
- Font Style
- Font variant
- Font weight
- Live Example
- Play with the code in the textarea below.
- xx-small, x-small, small, medium, large, x-large, xx-large and (px, em, pt, % ) values
- Default value
- Introduced in CSS version
- Applies to elements
- Browser Support
Browsers IE Firefox Safari Opera Chrome Versions 5 1 1 6 0.2
See the full list CSS properties and browser support: CSS Properties