Answers for "other children than first css"

CSS
10

css not first child

.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 */
}
Posted by: Guest on March-02-2020
0

other children than first css

div ul:nth-child(n+2) {
    background-color: #900;
}
Posted by: Guest on November-08-2020

Code answers related to "other children than first css"

Browse Popular Code Answers by Language