Getting More Advanced With Design - Colors Cheatsheet - Codecademy
Getting More Advanced With Design - Colors Cheatsheet - Codecademy
Colors
Color Name Keywords
Color name keywords can be used to set color
property values for elements in CSS. h1 {
color: aqua;
}
li {
color: khaki;
}
/
CSS Color Alpha Values
Alpha values determine the transparency of colors in
CSS. Alpha values can be set for both RGB and HSL .midground {
colors by using rgba() and hsla() and background-color: rgba(0, 255, 0,
providing a fourth value representing alpha. Alpha 0.5);
values can range between 0.0 (totally transparent) }
and 1.0 (totally opaque).
The CSS transparent value can also be used to .foreground {
create a fully transparent element. background-color: hsla(34, 100%, 50%,
0.1);
}
.transparent {
color: transparent;
}