Getting started with CSS container queries | MDN Blog
Container queries give us more control over our responsive layouts, as well as helping us write more concise, robust and maintainable CSS. Now that they enjoy widespread browser support, it’s a great time to give them a try. The great thing is you don’t have to go all-in straight away: if there’s a component you’re…