Centered content
For a simple centered container, let the block fill smaller viewports, cap it with max-width, and center it with margin-inline: auto. Choose breakpoint-specific widths based on when your content needs more room, not on a particular device.
The content stays centered and gains space only when the viewport is wide enough.
The content spans the full width.
The content stays centered and gains space only when the viewport is wide enough.