CSS Последние 3 ребенка

#something a:nth-last-child(-n+3) {
    /*declarations*/
}
Tough Termite