.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 */
}
div ul:not(:first-child){
background-color: #900;
}
Code Example |
---|
Css :: css text selection none |
Css :: center postion absdolute |
Css :: css spread children horizontally |
Css :: wordpress smooth scroll to anchor |
Css :: apple font css |
Css :: form field focus border remove css |
Css :: 100vh - 100px |
Css :: css alternate row color |
Css :: get company id odoo |
Css :: css flex center |
Css :: how to not underline links in css |
Css :: input type search remove x |
Css :: click through css |
Css :: html table td spacing |
Css :: html position absolute center |
Css :: css flip svg |
Css :: make image darker in css |
Css :: color code for pink |
Css :: css visibility |
Css :: how to import fonts css |
Css :: change input border color when selected |
Css :: image grascale css |
Css :: bg color css |
Css :: christmas red color code |
Css :: css grid wrap columns |
Css :: how to scroll fixed position |
Css :: how to make white image black in css |
Css :: font smoothing |
Css :: trasition opacity |
Css :: how to get the length of element with display none |