Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

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)) {-----}
 
PREVIOUS NEXT
Tagged: #css #select #elements #css
ADD COMMENT
Topic
Name
9+8 =