Re:Old Dogs, New CSS Tricks
by kevindamm on Sunday May 26, 2024 @08:34PM
(#40486585)
Agreed, but to add to this:
media queries are still useful, and since a media query may hide/remove entire containers in the view then the remaining containers may have widths that are no longer a simple proportion of the viewport width (or other property being selected for).
So container queries can also enhance styles with media queries, not just replace them.
media queries are still useful, and since a media query may hide/remove entire containers in the view then the remaining containers may have widths that are no longer a simple proportion of the viewport width (or other property being selected for).
So container queries can also enhance styles with media queries, not just replace them.