Answers for "get last element css"

CSS
2

css last element with class name

[class~='list']:last-of-type  {
    background: #000;
}
Posted by: Guest on June-30-2021
1

css let div be last

<div class="second">View</div>
<div>Tree</div>
Posted by: Guest on April-29-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
0

css let div be last

<div class="second">View</div>
<div>Tree</div>
Posted by: Guest on April-29-2021

Browse Popular Code Answers by Language