Anything wrong in this margin section?

Tell us what’s happening:

input[type=“submit”] {

display: block;

width: 60%;

margin: 1em 0 1em 0;

height: 2em;

font-size: 1.1rem;

background-color: #3b3b4f;

border-color: white;



Your code so far

Your browser information:

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

Challenge: Step 54

Link to the challenge:

The left and right margin should be auto.

Tip: When your top and bottom margin values are same and the left and right values are also the same, but the top&bottom is different from left&right you can use margin: top-bottom left-right. Example: margin: 10px 0; Here 10px is for the top and bottom and 0 is for left and right

oh thank you brother, :star_struck:

still can’t pass the step

Can you post your code ?

it’s showing " You should use the existing margin property to include 1em on the top and bottom."

You have to make sure the top and the bottom margins are 1em and the left and the right margins are auto

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