:not(:last-of-type) in style.css

Tell us what’s happening:

idk if im entering the code right

Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b32;
	color: #f5f6f7;
  font-family: Tahoma;
	font-size: 16px;
}

h1, p {
  margin: 1em auto;
  text-align: center;
}

form {
  width: 60vw;
	max-width: 500px;
	min-width: 300px;
	margin: 0 auto;
}

fieldset {
  border: none;
	padding: 2rem 0;
}

:not(:last-of-fieldset) {
  border-bottom: 3px solid #3b3b4f;
}

label {
	display: block;
	margin: 0.5rem 0;
}


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36

Challenge: Step 41

Link to the challenge:

Hi @blakebordeaux135 ,

The :not(:last-of-type) is used to select everything but the last of the selected elements. It has the following format :

selector:not(:last-of-type) {
   property: value; 
} 

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.