Should i use @container instead of @media?
Hi, if do not care about browser support should i completely discard @media usage ?
225 Replies
you use the tool you need
container queries can't do everything that media queries can do
tech they can
everything? even the
prefers-reduced-motion
stuff?
and media print
?okay i see
look smart ass
😄
you use grid layout frequently or flex?
not wrong but I think in this question we can assume they meant for @meda screen 😄
resizing elements for printing is a valid usecase
both, but mostly Grid for layout and flex to flex items
"flex to flex items" can you explain what do you mean by that?
or example
for example, tags
breadcrumbs
oh i see
maybe even a menu in the header
when I want children to become their max-content size by default and align next to each other and maybe need wrap
things that don't fit in a grid, usually