CSS | The Cascade: Specificity

div div div div div div div div div div div div {
height: 100px;
width: 100px;
background: thistle;
}
.special-class {
background: rebeccapurple;
}
div div div div div div div div div div div div {
height: 100px;
width: 100px;
background: thistle;
}
Such suspicious
{
property: value;
property: value;
}
selector {
property: value;
property: value;
}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Gabrielle von Koss

Gabrielle von Koss

doing code things at the Financial Times. lover of cheese.