Answers for "css first last child"

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
2

css last child with class

/*This will only work if the last child of someEID has 
the class .myclassName 
if the last child does not have class name us js*/
#someEID .myClassName:last-child {
    background: blue;
}
Posted by: Guest on March-11-2020

Browse Popular Code Answers by Language