CSS
Chain of css syntax
// single class with multiple conditions
div.test {
background-color: yellow;
}
.flex-container >div.red1{
background-color: red;
}
.red1.red2{
background-color: red;
}
// multiple class share same css
.red1,.red2 {
background-color: red;
}CSS Specificity
Element Selector (Slot 1)

Class Selector (Slot 2)


ID Selector (Slot 3)

Inline Style (Slot 4)

BEM Naming
CSS Module
Pre-processor
Post CSS

Last updated