last child element code example
Example 1: remove border from last child css
.menu li:last-child {
border: none;
}
Example 2: apply css on last child in parent div
.parent > *:last-child {
background-color: red;
}
Example 3: last-child
li:last-child {
background-color: lime;
}