CSS Fonts

@font-face

@font-face {
    font-family: 'Glegoo';
    src: url('../Glegoo.woff');
}

Case

/\* Hello \*/
text-transform: capitalize;
/\* HELLO \*/
text-transform: uppercase;
/\* hello \*/
text-transform: lowercase;

Example

font-family: Arial, sans-serif;
font-size: 12pt;
letter-spacing: 0.02em;

Shorthand

style weight size (required) line-height family
font: italic 400 14px / 1.5 sans-serif
style weight size (required) line-height family (required)

Properties

Property Description
font-family:
font-size:
letter-spacing:
line-height:
font-weight: / bold / normal
font-style: italic / normal
text-decoration: underline / none
text-align: left / rightcenter / justify
text-transform: capitalize / uppercase / lowercase
See also: Font
Comments