Use of margin in CSS

Tell us what’s happening:

Test: Sorry, your code does not pass. Try again.
No idea what I’m doing wrong ???
I’ve tried a whole lot of stuff, but the code below should be correct. Surely?

Your code so far

input[type="submit"] {
  display: block;
  width: 60%;
  margin: 1em 0 1em auto;
  min-width: 300px;
  height: 2em;
  font-size: 1.1rem;
  background-color: #3b3b4f;
  border-color: white;


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36

Challenge: Step 54

Link to the challenge:

You need to use the existing margin property, not create a new margin-top property.

Sorry, yeah, that was me experimenting, I forgot to change it back to margin. It still says the code is wrong - I’ve updated my original post above.

You’ve added a bunch of different values here. The number of values should not change.

1 Like

Ah, I get it now. Thank you. :grin:

1 Like

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