css div last child code example
Example 1: css last child
li:last-child {
background-color: lime;
}
Example 2: selecting last child css
p:last-child {
font-size: 0.75em;
}
Example 3: apply css on last child in parent div
.parent > *:last-child {
background-color: red;
}
Example 4: css selector last child
li:last-child {
background-color: lime;
}