Midhun Raj
8
Q:

selecting last child css

li:last-child {
    background-color: lime;
}
0
p:last-child {
  font-size: 0.75em;
}
4
/*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;
}
2
li:last-child {
  background-color: lime;
}
0

New to Communities?

Join the community