Responsive Web Design

Resize your browser to see the layout adapt!

You're viewing this on a desktop

You're viewing this on mobile

← Back to Examples

Card Grid (3 → 2 → 1 columns)

Card image

Card One

This grid adapts from 3 columns to 2 to 1.

Card image

Card Two

Try resizing your browser window.

Card image

Card Three

Media queries control the layout changes.

Sidebar Layout

Main Content Area

On desktop, the sidebar appears to the right. On tablet and mobile, the sidebar moves above the content. This is achieved using CSS Grid and the order property.

The navigation also changes: it becomes a hamburger menu on mobile devices to save space. Click the menu icon in the header to toggle navigation on mobile!

Media Query Breakpoints Used:

  • 1024px - Tablet breakpoint
  • 768px - Mobile breakpoint
  • 480px - Small mobile breakpoint