and not last child css code example
Example 1: not last child css
p:not(:last-child) {
margin-bottom: 20px
}
Example 2: selecting last child css
p:last-child {
font-size: 0.75em;
}
p:not(:last-child) {
margin-bottom: 20px
}
p:last-child {
font-size: 0.75em;
}