The div should have a margin set to auto.

Tell us what’s happening:
Describe your issue in detail here.
The div should have a margin set to auto .

  **Your code so far**

div {
  background-color: blue;
  height: 100px;
  width: 100px;
  margin: auto;
  **Your browser information:**

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

Challenge: Center an Element Horizontally Using the margin Property

Link to the challenge:

The code you have shared works on my end. Please ensure that you have disabled any extensions that interface with the freeCodeCamp website (such as Dark Mode and Ad Blocker), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

1 Like

Thanks for your help. Actually add blocker issue I’ve faced.

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