Search
 
SCRIPT & CODE EXAMPLE
 

CSS

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 */
}
Comment

li not first child

div ul:not(:first-child){
    background-color: #900;
}
Comment

PREVIOUS NEXT
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 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =