Answers for "how to target the last child of an element in css"

CSS
5

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

Code answers related to "how to target the last child of an element in css"

Browse Popular Code Answers by Language