Help in project

success
width: 100%;
height: auto;
max-width: 100%;
margin-left: auto;
margin-right: auto;
display: block;

failed
height:100%;
width:100%;
display:block;

please can someone explain to me why the upper code worked and the other code failed the test ?

When a test fails you can click on the red button to see which test failed and why. There will be text telling you what failed and what the test is looking for.
In this case, I believe the test is looking for the max-width property.

1 Like