Lurker News
Hey HN,

I'm a seasoned backend developer and systems administrator, with over 10 years of full-time programming experience. I've worked with anything from Assembly, C, Rust all the way to Python, Erlang, Elixir, PHP, Haskell, Lisp, Clojure.
When it comes to frontend, I have used React, Vue.js, ReasonML, Clojurescript and Elm extensively, and I know my way around web technologies in general. However, ever since I first started programming, I was NEVER able to get the gist behind CSS. I can't center my divs properly. I can't say "hey, CSS, this is the parent div, and all child divs must obey its size". I can't do anything basic on CSS without turning for help.
Incidentally, but very likely related, I always failed to have any glimpse into how design works. I have no idea which colors "go" with which ones, and pretty much all fonts look like the same for me.
I'd like to know the experience from fellow programmers. Is CSS an "art" thing? Is it common for other developers to have issues with it, or is it just me? Is there any material out there that made CSS "click" for you?

Comments (340) 150 threads

Earlier comments
anotheryou#
most has been said, but I want to add that the pragmatism of the language makes needed effort unpredictable.

many solutions seem to be born out of the fashion of that time. an animated dropshadow is easy, styling a checkbox, it's label and making it work for rich devices is damn hard.
(for the latter you need to figure out the way to associate a label with a checkbox, hide the default checkbox, draw your own to style that, somehow get the state from the hidden original checkbox and than build a very weird wrapper, that invisibly enlarges the clickable/touchable area without bursting your layout or covering another touch zone)
I think medium did a whole blog post on how to get aesthetical authority over a text undergone.

jwr#
CSS is crazy.

To keep my sanity, I try to avoid touching it as much as I can (I use Semantic-UI which gets me most elements with little effort), and when I have to, I try to stick to the more recent, reasonable parts. Flexbox for example is understandable and predictable.

Grumbledour#
No, really, it isn't. It just teaches you to fill up your html with a lot of useless classes while teaching you nothing about css, unless you want to change how it looks, in which case you have to basically rewrite everything.

It may be a good substitute for a first draft, but your website will be much leaner and cleaner without it.
Also, I can never get over the fact, that the bootstrap devs seem incapable of delivering UI elements like dropdowns without additional javascript or can't even include a no-js fallback. That doesn't really create confidence in their abilities as web developers.

tabtab#
My experience is that Bootstrap makes 95% easier but the 5% that doesn't cooperate eats up all the savings of the 95%. When it doesn't do what you intend, it's a black box that usually ends up being "fixed" using obscure CSS or JavaScript fudges found on Stackoverflow etc. It feels like: "Just put in 'grf:snig;bleppo(){99.foo()}' here, and that should fix it."

Load more comments