Skip to content
All Challenges
#07

Margin Auto Centering

Easy
Category: Box Model

Horizontally center the fixed-width .container by setting horizontal margin to auto.

Target HTML in preview:
<div class="container">Centered Container</div>
Verification Criteria:
Set margin to auto or margin-left & margin-right auto
styles.css
Live Evaluation
Loading...
|
Live Browser Output
Sandboxed Preview