Answers for "ignore last child css if only one"

CSS
13

not last child css

p:not(:last-child) { 
	margin-bottom: 20px
}
Posted by: Guest on June-15-2020
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

Browse Popular Code Answers by Language