Responsive Design
At mobile width, change three columns to one while keeping the desktop navigation and card layout intact.
At mobile width, change three columns to one while keeping the desktop navigation and card layout intact.
Start with space and interaction: A narrow screen is not merely smaller: line length, touch targets, sidebars, and tables may need reflow. Keep the information and actions required for the current task first.
Rules switch the layout: A breakpoint is a threshold for switching rules, and a media query is CSS syntax for expressing the condition. For example, paste this into project CSS: @media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }.
In the project CSS, add `@media (max-width: 720px)` for the card area: use one column on mobile while keeping the existing three columns on desktop. Check 390px and 1440px afterward and confirm titles, prices, buttons, and long text are not cramped or horizontally overflowing.