Showing posts with label CSS-Font-Properties. Show all posts
Showing posts with label CSS-Font-Properties. Show all posts

Font-Family

Font-family in CSS.

Syntax (
font-family : values;)
  • font-family
  • Values: serif | fantasy | cursive | forte | etc...
Example:

.class_name{font-family : cursive;}

Font-Size

Font-size in CSS.

Syntax (font-size : values;)
  • font-size
  • Values: smaller | larger | x-small | xx-small | small | medium | etc...
Example:

.class_name{font-size : smaller;}

Font-Weight

Font-weight in CSS.

Syntax (font-weight : values;)
  • font-weight
  • Values: normal | bolder | bold | lighter | 100 | 200 | etc...
Example:

.class_name{font-weight : bold;}

Font-Variant

Font-variant in CSS.

Syntax (font-variant: values;)
  • font-variant
  • Values: small-caps | normal
Example:

.class_name{font-variant: normal;}

Font-Style

Font-style in CSS.

Syntax (font-style : values;)
  • font-style
  • Values: italic | oblique | normal
Example:

.class_name{font-style : normal;}

Font-System

Font-system in CSS.

Syntax (font-system : values;)
  • font-system
  • Values: caption | icon | menu| message-box | small-caption | status-bar
Example:

.class_name{font-system : icon;}