Design a responsive layout

A card needs 280px of space. Can two cards and a 16px gutter fit a container that is 560px wide?

Examples

Example 1

Input
560px container, 280px per card, 16px gutter
Expected output
No, two cards need 576px

Hints and solution

Hint 1

Include the space between the cards.

Reveal worked answer

The required width is 280 + 16 + 280, or 576px. At 560px, keep one card per row under these constraints.

Back to the lesson