top | item 36747179

(no title)

ibiza | 2 years ago

I find the bifurcation between HTML elements and CSS statements maddening. Structural things like flexbox and grid would be far clearer as HTML element types.

discuss

order

dflock|2 years ago

HTML is for marking up the semantics of content - lists, headings, emphasis, etc… CSS is for presentation - how is appears in the target medium. The layout is 100% visual presentation and 100% belongs where it is, in CSS.

Dealing with multiple screen/windows/paper sizes, as well as dynamic resizing & scaling is incredibly hard or impossible when you've baked a fixed idea of presentation into your content, see: Latex, PDFs & old school HTML with complex tables for layout, for examples.

stefanfisk|2 years ago

How would that work when you need to switch stuff like `display` responsively?

manuelmoreale|2 years ago

Care to share an example of what you mean? Because I don't understand how that would look honestly.

c-hendricks|2 years ago

See any grid component in a library for React for example.