Professional Documents
Culture Documents
6.1 Font Proprerties
6.1 Font Proprerties
Ex: h1 {
Font-size: 20px;
}
Static sizes:
Px = pixel
Pt = point
Points are used for apps like Microsoft Word.
Relative sizes:
Ex:
<body font-size=20px>
<h1 font-size=1em> h1 size is going to be 20px
Ex:
<html font-size=40px>
<body font-size=20px>
<h1 font-size=1rem> h1 size is going to be 40px
Font weight: changes the weight of the used font.
We can use:
Keywords: normal/bold
Relative to the parent: lighter/bolder (for lighter it -100 and
bolder +100)
Number: 100-900