Answers for "how to target last child in css"

CSS
0

remove border from last child css

.menu li:last-child {
  border: none;
}
Posted by: Guest on September-06-2020
0

apply css on last child in parent div

.parent > *:last-child {
  background-color: red;
}
Posted by: Guest on August-26-2020

Code answers related to "how to target last child in css"

Browse Popular Code Answers by Language