Learn HTML Forms by Building a Registration Form - Step 48

Tell us what’s happening:

You can select the last element of a specific type using the last-of-type CSS pseudo-class, like this:

p:last-of-type { }

What should I do?

Your code so far

/* file: styles.css */
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;
  border-bottom: 3px solid rgb(59, 59, 79);
}


/* User Editable Region */

p:last-of-type {
  border-bottom: none;
}

/* User Editable Region */


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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0

Challenge Information:

Learn HTML Forms by Building a Registration Form - Step 48

Hello and welcome to the community :smiley:!

This was just an example of how to target a last of an element type.
The instructions say to target the last fieldset element not paragraph;)
Hope this helps!

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