CSS Meditation #1: If the code works as expected and it fits your mental model, then it’s perfect. originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.

CSS Container Queries

Container queries are often considered a modern approach to responsive web design where traditional media queries have long been the gold standard — the reason being that we can create layouts made with elements that respond to, say, the width of their containers rather than the width of the viewport. Read more…