css hide the last of child 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;
}
.menu li:last-child {
border: none;
}
.parent > *:last-child {
background-color: red;
}