Full-stack Web Technologies

CHAPTER 7
Values and Properties

Units

Absolute Lengths
pxpixels
ptpoints
cmcentimeters
mmmillimeters
ininches
Relative Lengths
emsize of an "m", relative to the element font size
remsize of an "m", relative to the <body> font size
%a percentage of the parent's dimension
vwviewport width
vhviewport height
Colors
redcolor names
#fadhexadecimal with 1 digit
#ffaaddhexadecimal with 2 digits
rgb(x, y, z)red-green-blue color model (0–255)
hsl(hue, sat, value)hue-saturation-value color model