css selector not last element code example
Example 1: not last child css
p:not(:last-child) {
margin-bottom: 20px
}
Example 2: css not last sibling
.star-rating li:not( :last-of-type ) {
margin: 0 12px 0 0;
color: goldenrod;
}
.star-rating li:last-of-type {
color: lightgrey;
}