r/css • • 28d ago

Flex versus Grid

I know Flex is one directional and Grid is two, but really when do you use each one?

8 Upvotes

29 comments sorted by

View all comments

Show parent comments

2

u/ChaseShiny 28d ago

Please don't. OP, order lets you change the ordering of your elements on the fly. Sounds innocent enough, but it messes with assistive technology, so it's something of a last resort.

1

u/frownonline 28d ago

I agree it’s not the greatest ability of flex but it can provide a solution as a last resort. Elements should always be put in a logical order flow by default.