Can't get past exercise in Responsive Web Design

Tell us what’s happening:
Describe your issue in detail here.
I can’t get past the task “Center an Element Horizontally Using the margin Property” in the course Responsive Web Design. When I click “run the tests” it says “The div should have a margin set to auto.”, which means I am unable to get to the next exercise. I will include a screen shot of this.

  **Your code so far**

<style>
div {
  background-color: blue;
  height: 100px;
  width: 100px;
  margin: auto;
}
</style>
<div></div>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15

Challenge: Center an Element Horizontally Using the margin Property

Link to the challenge:

Hello there @JonasMswe your solution looks correct and using the link provided I did the same and it passed perhaps you should restart your browser and try the challenge again

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