find child before las child css code example
Example 1: selecting last child css
p:last-child {
font-size: 0.75em;
}
Example 2: apply css on last child in parent div
.parent > *:last-child {
background-color: red;
}
p:last-child {
font-size: 0.75em;
}
.parent > *:last-child {
background-color: red;
}