CSS2 Font Property Reference Guide

CSS2 Font Property Reference Guide

This is a complete reference guide for web developers listing all font-related CSS properties defined in the World Wide Web Consortium’s recommendation for Cascading Style Sheets (Level 2).

Click on any property to see its description and example.

Number Property and Description
1 font Sets all font properties for an element. The value can be any of the following:-


font-style
font-variant
font-weight
font-size
line-height
font-family

2 font-family Defines the element’s font family. This can be a specific font or one of the following generic fonts: serif, sans-serif, cursive, fantasy, and monospace.
3 font-size Defines the font size.
4 font-size-adjust Adjusts the aspect ratio of the current font.
5 font-stretch Determines how much the current font is stretched.
6 font-style Defines the style of the font, which can be normal or one of the italic styles.
7 font-variant Defines a font for small caps.
8 font-weight Defines the weight of the font. If a number is used, it must be a multiple of 100 between 100 and 900; 400 is normal, and 700 is equivalent to the keyword bold.

Leave a Reply

Your email address will not be published. Required fields are marked *