Learn HTML Forms by Building a Registration Form - Step 55

Tell us what’s happening:
Describe your issue in detail here.

Challenge:-" Now, use the attribute selector to style the submit button with a display of block , and a width of 60% . "

You should use an attribute selector of input[type="submit"] to style the submit button.

I am getting the above error, I cant figure out what the problem is ? Hope someone help me out.

   **Your code so far**
/* 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;
 margin: 0 auto;
}

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

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

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

input,
textarea,
select {
 margin: 10px 0 0 0;
 width: 100%;
 min-height: 2em;
}

input, textarea {
 background-color: #0a0a23;
 border: 1px solid #0a0a23;
 color: #ffffff;
}

.inline {
 width: unset;
 margin: 0 0.5em 0 0;
 vertical-align: middle;

input[type="submit"]{
display: block;
width: 60%;
}

   **Your browser information:**

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14989.107.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

Challenge: Learn HTML Forms by Building a Registration Form - Step 55

Link to the challenge:

Your solution works for me. Please try one of the following steps to move forward.

  • Click on the “Restart Step” button and force a refresh of your page with CTRL-F5 then try to paste the code in again.

  • or - Try the step in incognito or private mode

  • or - Try a different browser or disable browser extensions that may interfere with the test.

We hope one of these will work for you.

1 Like

When the code color is not showing on it correctly, I have noticed it means that is not formatted correctly. What I can see after doing it to test it, is this. Your spacing is not correct. space the opening bracket for CSS after the input.

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