Answers for "how to select 1st and last child in css"

CSS
0

not the first child and not the last child css

#navigation ul li:not(:first-child):not(:last-child) {
  ...
}
Posted by: Guest on June-15-2021
0

select first 5 child css

li:nth-child(-n+5) {
    color: green;   
}
Posted by: Guest on May-28-2020

Code answers related to "how to select 1st and last child in css"

Browse Popular Code Answers by Language