concept
Breakpoint — CSS reference
A breakpoint is a chosen condition at which layout changes. Choose it where content needs room, not because a named device has a particular width. The example changes from one to two columns when at least 600 CSS pixels are available.
Formal Syntax & Structure
css syntaxcss
@media (min-width: 600px) { ... }Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>breakpoint</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}#a{display:grid;grid-template-columns:1fr;gap:10px}@media(min-width:600px){#a{grid-template-columns:1fr 1fr}}</style><body><main id="a"><div id="b">First</div><div id="c">Second</div></main></body></html>