Code Challenge: Build This UI With Only HTML and CSS

I thought it could be fun to have a small HTML/CSS challenge for the community.

Challenge: Recreate a simple responsive card layout using only HTML and CSS.

Requirements:

  • No JavaScript

  • No frameworks

  • Make it responsive

  • Use semantic HTML where possible

  • Keep the CSS reasonably clean

The interesting part is seeing how differently people approach the same layout—Grid, Flexbox, positioning, or a combination of techniques.

If you’re interested, post your solution below and explain any CSS decisions or tricks you used.

Bonus: Try to make the layout work well on both desktop and mobile without adding media-query-heavy hacks.

Could be a nice way to compare different approaches.