top | item 40993942

(no title)

cronin101 | 1 year ago

Kids these days don’t know how easy they have it with flexbox!

discuss

order

freedomben|1 year ago

I know you're not entirely serious, but we really had it good and largely figured out with tables. It's probably because using tables for layouts was my native language, but I still sometimes have to mentally translate divs into a table in my mind to picture what is happening, and when default types are change (like block to inline, etc) it sometimes breaks my brain and I have to fallback to experimentation to get what I want. Slight disclaimer though: I'm a backend/infra guy so don't do frontend very often.

recursive|1 year ago

Tables aren't even deprecated. IMO you're better off keeping the tables than transforming it into <div> soup. 20 years ago you'd hear it shouted from the rooftops: "Tables for layout are not semantic!". Guess what? <div>s are never semantic. Just use tables if it suits you.

Archelaos|1 year ago

> I still sometimes have to mentally translate divs into a table in my mind to picture what is happening

I still use tables (seriously).

holoduke|1 year ago

Table are used when tables are needed. Excel like overviews. No reason to not use tables. For site layouts (multiple columns etc) you would better use divs in a flexbox or something.

WorldMaker|1 year ago

Who needs Flexbox's inscrutable 1-dimension language when you can use ASCII diagrams in CSS Grid for clever 2D things easily? CSS Grid Kids are truly spoiled.

jchw|1 year ago

Flexbox, grid. You're all forgetting the best way to build layouts: ol' reliable, <table>.

pseudocomposer|1 year ago

So that’s why some devs can somehow still manage to make flexbox layouts difficult :D