selector css last child code example
Example 1: not last child css
p:not(:last-child) {
margin-bottom: 20px
}
Example 2: css last 3 childs
#something a:nth-last-child(-n+3) {
/*declarations*/
}
p:not(:last-child) {
margin-bottom: 20px
}
#something a:nth-last-child(-n+3) {
/*declarations*/
}