i cant make this step

Step 42

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.

   **Your code so far**
<!DOCTYPE html>
<html>
lang='en'
</html>
   **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Learn CSS Colors by Building a Set of Colored Markers - Step 1

Link to the challenge:

the code you posted is from the step 1, if you want help for step 42 please use the ask for help button in step 42, or at least copy your code and the link to step 42


fieldset {
  border: none;
  padding: 2rem 0;
  border-bottom: 3px solid #3b3b4f;
}

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


I’ve struggle with this step as well.

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