li:last-child {
background-color: lime;
}
p:nth-last-child(2) {
text-align: center;
}
// selector for second to the last child
// this will select second p element of parent, counting from the last child.
// parameter passed will determine number of element from the last element.
// in this case 2 which is the second to the last child.
p:last-child {
font-size: 0.75em;
}
/*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;
}
li:last-child {
background-color: lime;
}