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 :: how to slide div from left to right using css 
Css :: download s3 bucket files on l local 
Css :: plasma state of matter 
Css :: css background 
Css :: css text align right 
Css :: css bold 
Css :: image on top of image css 
Css :: css dropdown menu with scrollbar 
Css :: Capitalize the first letter of string using CSS 
Css :: class contains css 
Css :: css circle with number 
Css :: css move animation 
Css :: png image background transparent css 
Css :: css get screen height 
Css :: @supports css 
Css :: css good background color 
Css :: arrow left css 
Css :: html table scrollable body fixed header 
Css :: css table properties 
Css :: menu always center css 
Css :: css button click color 
Css :: Add Very Subtle Drop Shadow (CSS) To Element (HTML) 
Css :: install tailwind css in react 
Css :: stop css transition from firing on page load 
Css :: css media queries laptop 
Css :: gravity forms css classes 
Css :: center absolute suedo element 
Css :: css gradient background 
Css :: bulma uppercase 
Css :: add textcontent on hover 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =