Answers for "css target last child"

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
4

selecting last child css

p:last-child {
  font-size: 0.75em;
}
Posted by: Guest on January-31-2020
2

css last child with class

/*This will only work if the last child of someEID has 
the class .myclassName 
if the last child does not have class name us js*/
#someEID .myClassName:last-child {
    background: blue;
}
Posted by: Guest on March-11-2020

Browse Popular Code Answers by Language