xxxxxxxxxx
/* Select all elements that are not the first child */
:not(:first-child) {
/* Your styles here */
}
xxxxxxxxxx
.block:not(:first-child) {
background-color: #990000;
}
//if you need to support legacy browsers then follow the below solution
.block {
background-color: #990000; /* applies to every ul */
}
.block:first-child {
background-color: transparent; /* limits the scope of the previous rule */
}
xxxxxxxxxx
:not(:first-child) {
/* CSS rules for all elements except for the first item go here */
}
xxxxxxxxxx
/* Selects elements that are not the first child */
:not(:first-child) {
/* CSS rules here */
}