Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
.container { width: 90%; /* Fluid — scales with viewport */ max-width: 1200px; /* Cap at 1200px on large screens */ margin: 0 auto; /* Center horizontally */ } .column { width: 100%; /* Full width on mobile */ } @media (min-width: 768px) { .column { width: 50%; } }
Result
Open