Step 48- Registration Form

I’ve tried researching what went wrong here, but I cannot figure it out. Some help would be much appreciated!

The question asks: Step 48

The border of the last fieldset element looks a little out of place. You can select the last element of a specific type using the last-of-type CSS pseudo-class, like this:

p:last-of-type { }

That will select the last p element. Create a new selector that targets the last fieldset element and set its border-bottom to none.

My Code So far

Registration Form

Registration Form

Please fill out this form with the required information

Enter Your First Name: Enter Your Last Name: Enter Your Email: Create a New Password: Account type (required) Personal Business Upload a profile picture: Input your age (years): How did you hear about us? Provide a bio: I accept the terms and conditions

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);
fieldset:last-of-type {
border-bottom: none;
}
label {
display: block;
margin: 0.5rem 0;
}

the fieldset selector is missing a closing graph parenthesis

1 Like

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