CSS is hard no matter how good you are at it
11–20 of 83 posts
Re: CSS is hard no matter how good you are at it
#12Also, the less CSS, the better. + no shame in using !important sometimes.
All in all, CSS requires experience
Re: CSS is hard no matter how good you are at it
#13It's always been a time sink for me. Besides using frameworks, does anyone have any suggestions on how to develop a css file without getting into the neverending hacks that require hacks to fix the hacks? I have yet to see a long term css file that's not a birds nest of fixes.
Re: CSS is hard no matter how good you are at it
#14The "trick" is to employ progressive enhancements. Also, the less CSS, the better. + no shame in using !important sometimes. All in all, CSS requires experience
Sure they have their place, but goddamnit do some people abuse them and make huge messes with them :(
Re: CSS is hard no matter how good you are at it
#15It's always been a time sink for me. Besides using frameworks, does anyone have any suggestions on how to develop a css file without getting into the neverending hacks that require hacks to fix the hacks? I have yet to see a long term css file that's not a birds nest of fixes.
My issue is, ever since 1997, the spec hasn’t really lent itself to composability. Just a list of definitions. Maybe some shareable effects but not idempotent in and of themselves. From tables, to floating divs, to grid 960, to flexbox. We keep inventing new ways of dealing with the shortcomings of the standard.
Inheritance and composition should be paramount. Sass and Less help but still fall short of the ideal state.
When I encounter a “this isn’t lining up” problem. I think about the composition first before I think about styling. Should I put it in a div and give that the right properties that I can then shim a span in there with the rest of the required style? Or do I need a new style definition to achieve the look. I try to avoid creating new styles if I can.
Re: CSS is hard no matter how good you are at it
#16I've never had much trouble with CSS but I also just never try to use the cascading aspect of it outside of fonts. I just write either CSS directly onto components I'm using or I just use tailwind.
Re: CSS is hard no matter how good you are at it
#17Re: CSS is hard no matter how good you are at it
#18Re: CSS is hard no matter how good you are at it
#19Re: CSS is hard no matter how good you are at it
#20It's always been a time sink for me. Besides using frameworks, does anyone have any suggestions on how to develop a css file without getting into the neverending hacks that require hacks to fix the hacks? I have yet to see a long term css file that's not a birds nest of fixes.
Tailwind * tries * to resolve this, but is probably just a different bird's nest.