HTML Runner

Responsive Card Example

Resize a card layout that adapts with CSS Grid and uses a button to disclose details.

More
Editor
Live Preview
Console 0 errors · 0 warnings

    Ready

    Find and replace

    How this example works

    A grid with auto-fit and minmax creates as many tracks as the available width permits. The native details control handles keyboard and screen-reader interaction.

    Try a change

    Reduce the minimum track size from 180px to 140px. Compare the layout at 320px and 768px in the custom viewport.

    Related resources