3 ms·
My feelings are mixed about CSS. In many cases, a small amount of CSS can give you a lot of control over formatting in a way that is easy to maintain. Over th
by PaulHoule 4y ago
My feelings are mixed about CSS.
In many cases, a small amount of CSS can give you a lot of control over formatting in a way that is easy to maintain. Over the long term CSS has gotten much better in every respect but one.
That one respect is insofar as there is a "CSS specification" it is this
https://www.w3.org/TR/css-2022/ https://www.w3.org/TR/css-2022/
which itself refers to roughly 50 documents which furthermore has the mind-melting structure of "Document 17 replaces clauses 13.5 and 15.11.9 in Document 3". On top of that you need to refer to
https://caniuse.com/ https://caniuse.com/
for browser variations and various cheat sheets
https://css-tricks.com/snippets/css/complete-guide-grid/ https://css-tricks.com/snippets/css/complete-guide-grid/
which I'd usually advise against (you can consistently get the right answers if you look things up in the docs.)
Maintaining other people's CSS is also a bear and even maintaining my own is pretty bad for side projects that I work on sporadically for a few years (I wind up introducing a class to solve this problem and another to solve that problem and don't have much of a master plan.)
Then there are the various CSS frameworks which vary from useful to insane (the original Bootstrap which was about as easy to use as learning to paint with oils) and practices like BEM, which is the webs' answer to RAAI in C.