Step 54, Margin edit

Tell us what’s happening:
I’m stuck at the margin request. I’m thinking of it as Top, right, bottom, left, and so have adjusted the numbers accordingly but it’s not being accepted. The original margin was set as 1em auto; I’ve tried both leaving the auto at the end and removing it, neither works. Any suggestions?

Your code so far
margin: 1em 0 1em 0; ← what am I missing here?

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

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

Challenge: Step 54

Link to the challenge:

HI @aceveyesi !

Welcome to the forum!

The auto is supposed to be there because that represents the left right margins.
You just need to change the first number which represents the top-bottom margins.
So the margin should only have two values not 4.

Also, you haven’t mentioned the second component of the challenge which is to adjust its width to never be below 300px. make sure you have added that part too.

When I have those two things, it passes for me.

Hope that helps!

1 Like

Yes I was able to get the width down but was just having issues with the margin. I was overthinking it, thank you so much for your help!

1 Like