Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- :nth-child 8:00
- :nth-of-type 4:30
- :nth Pseudo-Class Challenge 2 objectives
- :nth Pseudo-Class Challenge - Pt. 2 1 objective
- :root and :target 5:12
- :not() – The Negation Pseudo-Class 4:46
- Pseudo-Elements - ::first-line and ::first-letter 5:00
- Pseudo-Elements - ::before and ::after 8:13
- The attr() CSS Function 6:32
- Pseudo-Elements Challenge 4 objectives
- Advanced Selectors Review 6 questions

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
The :not() pseudo-class is referred to as a negation pseudo-class because it selects everything except the element we specify in the selector.
Quick Reference
Using :not()
This selector targets all input elements that do not have a type
value of button
:
input:not([type="button"]) {
border-color: blue;
}
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
PLUS
Carel Du Plessis
Courses Plus Student 16,356 Points1 Answer
-
Lee Cockcroft
5,147 Points3 Answers
-
Rick Rana
10,285 Points1 Answer
-
Rifqi Fahmi
23,164 Pointsare this posible if we set the margin besides using :not() property
Posted by Rifqi FahmiRifqi Fahmi
23,164 Points1 Answer
-
shaleeneejadoopat
5,456 Points2 Answers
-
Jason S
16,247 Points1 Answer
-
Brigette Eckert
16,957 Points2 Answers
-
Sean Flanagan
33,236 Points1 Answer
-
derekverrilli
8,841 Points1 Answer
-
PLUS
Jeffrey Watters
Courses Plus Student 7,403 Points1 Answer
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up