background-color
Določa barvo ozadja elementa
Vrednosti
Barvo ozadja lahko podamo na več načinov:
- prozorno: transparent
-
poimensko: aqua, black, blue, fuchsia,
gray, green, lime, maroon, navy,
olive, purple, red, silver, teal,
white, yellow
- RGB - šest šestnajstiških števk: od #000000 do #ffffff
- RGB - tri šestnajstiške števke: od #000 do #fff
- RGB - tri naravna števila med 0 in 255: rgb(100, 50, 255)
- RGB - tri deleži med 0 in 100: rgb(30%, 10%, 75%)
Primeri
transparent.
aqua,
black,
blue,
fuchsia,
gray,
green,
lime,
maroon,
navy,
olive,
purple,
red,
silver,
teal,
white,
yellow.
Modro barvo lahko opišemo na pet različnih načinov:
blue,
#0000ff,
#00f,
rgb(0, 0, 255),
rgb(0%, 0%, 100%).