.section { padding: 16px; } @media (min-width: 1024px) { .section { padding: 48px; } }Content uses phone space efficiently but gains more breathing room on large screens.
LESSON 73 OF 100
Provide compact spacing on mobile and generous spacing on desktop.
Breakpoints are not only for columns. Any declaration can respond to the condition; here padding grows only when the viewport is at least 1024px wide.
.section { padding: 16px; } @media (min-width: 1024px) { .section { padding: 48px; } }Content uses phone space efficiently but gains more breathing room on large screens.
@media (max-width: 1024px) { .section { padding: 48px; } }Large padding on screens up to 1024px can waste mobile space.
Keep 16px padding and set 48px from a width of 1024px.
The cascade keeps the base value until the min-width condition becomes true.
ANALYSIS REQUEST
The initial discussion is without obligation. You receive an honest recommendation, suitable stages and the factors that affect price.