🌐Responsive Breakpoint
Also known as CSS Breakpoint, Layout Breakpoint, Media Query Breakpoint
A screen width where a site's layout changes, like one column to two.
Think of it like
It is like the line where you switch from walking to running. Past it, you move a new way.
Example
At 768 pixels wide, Leo's shop grid jumps from two products a row to three.
Why it matters
A layout can only change its shape at a breakpoint. Put them in the right spots, and each width stays easy to read.
Definition
Example code
css
.grid { grid-template-columns: 1fr; }
@media (min-width: 768px) {
.grid { grid-template-columns: 1fr 1fr; }
}Common mistake
Key takeaways
- 1A width where it changes. Set with a media query.
- 2Follow the content. Not one phone.
- 3Only a few. Each one is work.