# How do i get pass the puesdo-class

**URL:** <https://forum.freecodecamp.org/t/how-do-i-get-pass-the-puesdo-class/510688>\
**Category:** Curriculum Help\
**Tags:** html, css\
**Created:** [May 22, 2022, 7:27pm UTC](https://forum.freecodecamp.org/t/how-do-i-get-pass-the-puesdo-class/510688 "2022-05-22T19:27:58Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![kingsleychijioke5566](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kingsleychijioke5566/32/240398_2.png) [@kingsleychijioke5566](https://forum.freecodecamp.org/u/kingsleychijioke5566)\
**Post date:** [May 22, 2022, 7:27pm UTC](https://forum.freecodecamp.org/t/how-do-i-get-pass-the-puesdo-class/510688/1 "2022-05-22T19:27:59Z")

</div>

**Tell us what’s happening:**

**Your code so far**

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

````auto
Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

````

**Your browser information:**

User Agent is: `Mozilla/5.0 (Windows NT 6.1; rv:100.0) Gecko/20100101 Firefox/100.0`

**Challenge:** Step 41

**Link to the challenge:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-forms-by-building-a-registration-form/step-41)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [May 22, 2022, 7:37pm UTC](https://forum.freecodecamp.org/t/how-do-i-get-pass-the-puesdo-class/510688/2 "2022-05-22T19:37:22Z")

</div>

HI @kingsleychijioke5566 !

Can you provide your code so we can assist you?

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (`</>`) to add backticks around text.

 ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)

See [this post](https://forum.freecodecamp.org/t/forum-code-formatting/25574) to find the backtick on your keyboard.  
**Note:** Backticks (`) are not single quotes (’).

---

<div class="post-metadata">

**Author:** ![kingsleychijioke5566](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kingsleychijioke5566/32/240398_2.png) [@kingsleychijioke5566](https://forum.freecodecamp.org/u/kingsleychijioke5566)\
**Post date:** [May 22, 2022, 7:51pm UTC](https://forum.freecodecamp.org/t/how-do-i-get-pass-the-puesdo-class/510688/3 "2022-05-22T19:51:38Z")

</div>

```auto
:not(:last-of-type) {
   border-bottom: 3px solid #3d3d4f;
}

```

This was my code but its not going through please what should i do?

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [May 22, 2022, 8:24pm UTC](https://forum.freecodecamp.org/t/how-do-i-get-pass-the-puesdo-class/510688/4 "2022-05-22T20:24:47Z")

</div>

You need to make sure to have the fieldset selector here

> [@kingsleychijioke5566](#):
>
> `:not(:last-of-type) `

Otherwise the computer will not know what you are referring to

Also, you need to use the correct hex code here

> [@kingsleychijioke5566](#):
>
> `#3d3d4f;`

reread the hint again for the correct code  
Hint

You should give the `fieldset` elements a `border-bottom` of `3px solid #3b3b4f` .

---

<div class="post-metadata">

**Author:** ![kingsleychijioke5566](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kingsleychijioke5566/32/240398_2.png) [@kingsleychijioke5566](https://forum.freecodecamp.org/u/kingsleychijioke5566)\
**Post date:** [May 22, 2022, 8:28pm UTC](https://forum.freecodecamp.org/t/how-do-i-get-pass-the-puesdo-class/510688/5 "2022-05-22T20:28:35Z")

</div>

i was asked to use the :not(:last-of-type) puesdo-class to select all but the last element.

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [May 22, 2022, 8:31pm UTC](https://forum.freecodecamp.org/t/how-do-i-get-pass-the-puesdo-class/510688/6 "2022-05-22T20:31:31Z")

</div>

> [@kingsleychijioke5566](#):
>
> all but the last element.

Yes, the directions say to select all but the last `fieldset` element  
You have to specify the `fieldset` element before the pseudo selector for it to work properly.

Here is a good example, from MDN docs

> **[:last-of-type - CSS: Cascading Style Sheets | MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/:last-of-type)**
>
> The :last-of-type CSS pseudo-class represents the last element of its type among a group of sibling elements.

Hopefully that clears it up

---

<div class="post-metadata">

**Author:** ![kingsleychijioke5566](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kingsleychijioke5566/32/240398_2.png) [@kingsleychijioke5566](https://forum.freecodecamp.org/u/kingsleychijioke5566)\
**Post date:** [May 23, 2022, 7:51am UTC](https://forum.freecodecamp.org/t/how-do-i-get-pass-the-puesdo-class/510688/7 "2022-05-23T07:51:52Z")

</div>

**Tell us what’s happening:**

**Your code so far**

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

````auto
Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

````

**Your browser information:**

User Agent is: `Mozilla/5.0 (Windows NT 6.1; rv:100.0) Gecko/20100101 Firefox/100.0`

**Challenge:** Step 41

**Link to the challenge:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-forms-by-building-a-registration-form/step-41)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![Cryptic\_X](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/cryptic_x/32/258542_2.png) [@Cryptic\_X](https://forum.freecodecamp.org/u/Cryptic_X)\
**Post date:** [May 23, 2022, 7:58am UTC](https://forum.freecodecamp.org/t/how-do-i-get-pass-the-puesdo-class/510688/8 "2022-05-23T07:58:16Z")

</div>

Can you post your code, can’t help you. without the code.

It also helps if you can describe your issue in the **Tell us what’s happening:** section.

The `:not(:last-of-type)` has the following format:

```auto
cssSelector:not(:last-of-type){
   ...... : ....;
}

```

The `:not(:last-of-type)` is used to select everything but the last of the selected elements.

Example:

```auto
p:not(:last-of-type){
   color:white;
}
```

---

<div class="post-metadata">

**Author:** ![kingsleychijioke5566](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kingsleychijioke5566/32/240398_2.png) [@kingsleychijioke5566](https://forum.freecodecamp.org/u/kingsleychijioke5566)\
**Post date:** [May 23, 2022, 8:02am UTC](https://forum.freecodecamp.org/t/how-do-i-get-pass-the-puesdo-class/510688/9 "2022-05-23T08:02:39Z")

</div>

thank you very much just passed the challenge.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [November 21, 2022, 8:03pm UTC](https://forum.freecodecamp.org/t/how-do-i-get-pass-the-puesdo-class/510688/10 "2022-11-21T20:03:17Z")

</div>

Closed on November 21, 2022, 8:03pm UTC

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