# Registration form - step 40 - help!

**URL:** <https://forum.freecodecamp.org/t/registration-form-step-40-help/523224>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [June 29, 2022, 2:01pm UTC](https://forum.freecodecamp.org/t/registration-form-step-40-help/523224 "2022-06-29T14:01:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![raggy](https://avatars.discourse-cdn.com/v4/letter/r/b4bc9f/32.png) [@raggy](https://forum.freecodecamp.org/u/raggy)\
**Post date:** [June 29, 2022, 2:01pm UTC](https://forum.freecodecamp.org/t/registration-form-step-40-help/523224/1 "2022-06-29T14:01:18Z")

</div>

I’m having trouble getting my code to pass this step and if anyone can help me I would be so thankful!

The instructions are:  
During development, it is useful to see the `fieldset` default borders. However, they make the content appear too separated.

Remove the `border`, and add `2rem` of padding only to the top and bottom of each `fieldset`. Be sure to remove the `padding` from the left and right.

And I’ve entered the code:

fieldset {

border: 0;

padding-left: 0;

padding-right: 0;

padding-top: 2rem;

padding-bottom: 2rem;

}

I can’t work out what I’ve done wrong and I’ve been searching for the answer for ages! Help!

```
   **Your code so far**

```

```html
/* file: index.html */
<!DOCTYPE html>
<html>
 <head>
   <title>Registration Form</title>
	  <link rel="stylesheet" href="styles.css" />
 </head>
 <body>
   <h1>Registration Form</h1>
   <p>Please fill out this form with the required information</p>
   <form action='https://register-demo.freecodecamp.org'>
     <fieldset>
       <label>Enter Your First Name: <input type="text" name="first-name" required /></label>
       <label>Enter Your Last Name: <input type="text" name="last-name" required /></label>
       <label>Enter Your Email: <input type="email" name="email" required /></label>
       <label>Create a New Password: <input type="password" name="password" pattern="[a-z0-5]{8,}" required /></label>
     </fieldset>
     <fieldset>
       <label><input type="radio" name="account-type" /> Personal Account</label>
       <label><input type="radio" name="account-type" /> Business Account</label>
       <label>
         <input type="checkbox" name="terms" required /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
			  </label>
     </fieldset>
     <fieldset>
       <label>Upload a profile picture: <input type="file" name="file" /></label>
       <label>Input your age (years): <input type="number" name="age" min="13" max="120" />
			  </label>
       <label>How did you hear about us?
         <select name="referrer">
           <option value="">(select one)</option>
           <option value="1">freeCodeCamp News</option>
           <option value="2">freeCodeCamp YouTube Channel</option>
           <option value="3">freeCodeCamp Forum</option>
           <option value="4">Other</option>
         </select>
       </label>
       <label>Provide a bio:
         <textarea name="bio" rows="3" cols="30" placeholder="I like coding on the beach..."></textarea>
			  </label>
     </fieldset>
     <input type="submit" value="Submit" />
   </form>
 </body>
</html>

```

```css
/* file: styles.css */
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;
fieldset {
border: 0;
padding-left: 0;
padding-right: 0;
padding-top: 2rem;
padding-bottom: 2rem;
}

label {
	display: block;
	margin: 0.5rem 0;
}

```

```
   **Your browser information:**

```

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36`

**Challenge:** Step 40

**Link to the challenge:**

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

---

<div class="post-metadata">

**Author:** ![GauravSakhare](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/gauravsakhare/32/272732_2.png) [@GauravSakhare](https://forum.freecodecamp.org/u/GauravSakhare)\
**Post date:** [June 29, 2022, 2:10pm UTC](https://forum.freecodecamp.org/t/registration-form-step-40-help/523224/2 "2022-06-29T14:10:47Z")

</div>

Go through your code again. The closing curly bracket of form selector is missing.

---

<div class="post-metadata">

**Author:** ![KittyMac](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kittymac/32/239859_2.png) [@KittyMac](https://forum.freecodecamp.org/u/KittyMac)\
**Post date:** [June 29, 2022, 2:12pm UTC](https://forum.freecodecamp.org/t/registration-form-step-40-help/523224/3 "2022-06-29T14:12:17Z")

</div>

It looks as if you’ve accidentally deleted the last part of your `form` selector (just above your `fieldset` selector).

It might be best to reset the step and then try your `fieldset` code again.

(You may need to resubmit your code a few times before you see the option to “reset this step” below the submit button).

---

<div class="post-metadata">

**Author:** ![raggy](https://avatars.discourse-cdn.com/v4/letter/r/b4bc9f/32.png) [@raggy](https://forum.freecodecamp.org/u/raggy)\
**Post date:** [June 29, 2022, 2:31pm UTC](https://forum.freecodecamp.org/t/registration-form-step-40-help/523224/4 "2022-06-29T14:31:55Z")

</div>

Arg! I was sure it was correct and have no idea how I deleted that curly bracket. Thank you!

---

<div class="post-metadata">

**Author:** ![GauravSakhare](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/gauravsakhare/32/272732_2.png) [@GauravSakhare](https://forum.freecodecamp.org/u/GauravSakhare)\
**Post date:** [June 30, 2022, 5:23am UTC](https://forum.freecodecamp.org/t/registration-form-step-40-help/523224/5 "2022-06-30T05:23:55Z")

</div>

Cool. You can mark my above comment as ‘ **Solution** ’ so that others will know that this issue is now resolved. 😄

---

<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:** [December 29, 2022, 5:24pm UTC](https://forum.freecodecamp.org/t/registration-form-step-40-help/523224/6 "2022-12-29T17:24:26Z")

</div>

Closed on December 29, 2022, 5:24pm UTC

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