input[type = "submit"] {
display: block;
width: 60%;
}
getting error:
Sorry, your code does not pass. Hang in there.
You should use an attribute selector of input[type="submit"]
to style the submit button.
input[type = "submit"] {
display: block;
width: 60%;
}
getting error:
Sorry, your code does not pass. Hang in there.
You should use an attribute selector of input[type="submit"]
to style the submit button.
I’ve edited your code for readability. 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.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').
Your code passes for me. Chances are you accidentally made some other change that is causing the tests to fail. I would reset the step to get the default code back, and then try again, making sure not to accidentally change anything else.
Also, if you paste all of your code in here next time, we might be able to help you find the accidental change.
It might be because of the unnecessary spaces around the “=“ sign…?
You don’t have to guess, you can test this for yourself to see if it makes a difference. I’ll spoil the surprise for you. It doesn’t
Granted, I think it’s a best practice not to have those spaces, but they won’t cause the tests to fail. I only mention this so that the OP doesn’t get confused over what the issue is. It’s not the spaces. If I had to guess, I bet they accidentally removed the closing curly brace on the .inline
ruleset above this one.
Aha, got it. You’re right - I should’ve tested it. Laziness is a plague indeed. Thanks!
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.