Should i use @container instead of @media?

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