Form Lesson 48 "What is the last fieldset element you are referring to?"

I have tried multiple elements “fieldset, label, select, textarea, …” and no luck. Not sure which element they are referring to use the “last-of-type { }” with. The code in the style is fine just unsure of the target element

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.

Please post your full code so the forum can assist.

fieldset:last-of-type {

border-bottom: none;

}

For Registration Form step 48, your code passes.

Reset the step and try again. If that doesn’t work, refresh the page, disable dark mode, disable ad blockers. Or, use another browser.
If the above steps do not work, you may need to restart the computer.

Happy coding

2 Likes

Also tried:

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

due to the fact that label is the last element of the last fieldset element

reset worked! thanks. Was driving me crazy. Could swear the code was correct just kept saying it wasn’t.

3 Likes

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