Search
 
SCRIPT & CODE EXAMPLE
 

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)) {-----}
Comment

css all except last

:not(:last-child) { /* styles */ }
Comment

PREVIOUS NEXT
Code Example
Css :: CSS make image fill whole background 
Css :: use a local font css 
Css :: change the color of a checkbox css 
Css :: remove scrollbar css 
Css :: how to center in absolute position 
Css :: css hover to disable 
Css :: align icon center div 
Css :: border: 1px solid black; 
Css :: boxshadow in css 
Css :: how to give opacity to background only 
Css :: css how do i remove highlighting 
Css :: how to make animation stay on 100% 
Css :: background image size css 
Css :: css image filter black and white 
Css :: css dark filter over image 
Css :: react hide scrollbar 
Css :: span wrap html 
Css :: antd css import 
Css :: css media query aspect ratio 
Css :: how to center in css 
Css :: tailwind border bottom 
Css :: css glow text 
Css :: background image fill div 
Css :: hover button scss 
Css :: center div horizontally 
Css :: cursor pointer events none 
Css :: before css font awesome 
Css :: 3 column responsive grid css 
Css :: disable cursor css 
Css :: change color of mark tag in html 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =