Answers for "css not first of child and last"

CSS
15

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 */
}
Posted by: Guest on March-02-2020
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

Code answers related to "css not first of child and last"

Browse Popular Code Answers by Language