3 ms·
I sympathize. Been doing webdev since 1998 (before CSS). Most CSS in the wild is just awful and virtually unmaintainable. I can't recommend highly enough that y
by chrisweekly 6y ago
I sympathize. Been doing webdev since 1998 (before CSS). Most CSS in the wild is just awful and virtually unmaintainable. I can't recommend highly enough that you and everyone else (the overwhelming majority) who feels the same way head to https://every-layout.dev https://every-layout.dev to learn about "Axiomatic CSS". It explains and illustrates not just layout but virtually everything you need to know about leveraging standard CSS, building up from clearly-articulated and unimpeachable first principles. The axioms and examples on the free site are profoundly useful, and the $100 book / full site / component generator are more than worth it.
Disclaimer: No affiliation, just a grateful customer hoping these ideas catch on.
- marlowe221 6y agoThanks for posting this. As someone new to professional web development, stuff like this is a valuable resource.
- spinningslate 6y agothanks - you've just sorted my Christmas project for me. I've tried to wrap my head around CSS layout several times. On each occasion, I've come away with a perplexed sense of "but.... surely it shouldn't be as hard as this?". Layout is about the relationship among elements. CSS - as far as I could see - is based on styling elements within containers. There's little or no ability to express peer-to-peer relationships directly. First example on every-layout and already I have a fresh perspective. For example, under stack [0]: "margin is really a property of the relationship between two proximate elements. " and then a solution for styling the relationship directly. [0]: https://every-layout.dev/layouts/stack/ https://every-layout.dev/layouts/stack/