HTML Forms Step 41

I am on Step 41 of the HTML forms course and I cannot seem to find a solution it will accept. I am confused how the “:not” CSS pseudo class works. I tried 10 different times myself and resorted to copying and pasting a solution someone else said worked for them. None of it worked.

Question:

Step 41

To give the fieldset elements a bit of separation, select all but the last fieldset element, and give them a border-bottom of 3px solid #3b3b4f.

My code:

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

Link to question:

Learn HTML Forms by Building a Registration Form: Step 41 | freeCodeCamp.org

Thanks

try
Mod Edit : SOLUTION REMOVED

Stop posting solution code. Thank you

no wonder coders give up. thank you.

Can you point me in the right direction? I can’t move on and I don’t even know where to look for answers.

Try removing the space between these two pieces. Also, you should have a : before last-of-type

2 Likes

Thank you! I was able to move on. If you have the time I have several follow up questions. If not have a wonderful day. :slight_smile:

The :not page didn’t include the extra colon on any of the examples so I didn’t know to put it in there. It must be that all pseudo classes require the colon to function?

I also noticed several of the examples had the space between the element and the pseudo class, but some of them didn’t. Is there a rule for this?

1 Like

I’m not sure if the space is required, but I’m pretty sure that the : is mandatory for pseudo classes.

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