Answers for "css to all but last element"

CSS
2

css select all elements except last css

To give a border to all 'div's except the last one:
div:not(:nth-last-of-type(1)) {
	border-bottom:2px solid #f1f1f1;
}

syntax: 
<html tag name>:not(:nth-last-of-type(n)) {-----}
Posted by: Guest on June-05-2020
1

css let div be last

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

Code answers related to "css to all but last element"

Browse Popular Code Answers by Language