css select last child of type code example
Example 1: selecting last child css
p:last-child {
font-size: 0.75em;
}
Example 2: css selector last child
li:last-child {
background-color: lime;
}
Example 3: 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;
}