I can't solve step 50?

Tell us what’s happening:

Step 50

To style the submit button, you can use an attribute selector, which selects an element based on the given attribute value. Here is an example:

input[name="password"]

The above selects input elements with a name attribute value of password .

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

Your code so far
html

CSS
.submit{

display:block;

width:60%;

}

Challenge: Step 50

Link to the challenge:

Your using the class ‘submit’ for the selector but I don’t see any element in the HTML with a class of ‘submit’. If the instructions talk about using an attribute selector for styling then I think it is a good bet that you should probably use an attribute selector to style the submit button :grinning: What attribute on your submit button could you use?

Hey i had an issue with this one as well, took me quite a bit actually… You have the right idea when you try to create the code. Only issue is they want you to use the
input[name=“password”] but replace the “password” with “submit” button as it says and replace the name before the = sign to type. After that add the remainder of the code you wrote down from { down. Hope this helps

Could you fix this? i get the same error

I did the following, but doesn’t work:

input[type=“submit”]

submit {

display: block;

width: 60%;

}

Hey there- I am also having the same problem with this one. The code I have entered this far is as follows:

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

any ideas?

remove second submit and you good.

2 Likes

i did what you said and it passed but the concept is just beyond me, idk what the hell im doing

1 Like

maybe it works
input[type=“submit”] {

display: block;

width: 60%;

}

work like a charm, thx

Im going crazy with this, I did exactly what the other guys response and still didn’t work for me.

1 Like

SAME. So frustrating.

This finally worked for me, after searching and trying numerous times…

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