/
CSS Order Dependent Selectors
CSS Order Dependent Selectors
These are special selector rules that can be used to select an element before or after the targeted element.
/* Select a child afterwards */
.MAINpanel:after {
/* some styling */
}
/* Before */
.MAINpanel:before {
}
/* Nth child */
.LOGpanel:nth-child(2) {
background: red;
}
, multiple selections available,
Related content
CSS Selectors
CSS Selectors
More like this
More specific CSS selectors will override more general rules
More specific CSS selectors will override more general rules
More like this
Flat CSS hierarchy
Flat CSS hierarchy
More like this
CSS Colors
CSS Colors
Read with this
Use of classes and divisions in CSS
Use of classes and divisions in CSS
More like this
CSS supports variables
CSS supports variables
Read with this