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

Show all comments

Showing thread 32 of 150

beaconstudios#
as someone who is intimately familiar with CSS and doesn't have a problem using it - it's still poorly designed. I think the problem you have with it (and the one I have with it) is that it is in no way systemic. It's like PHP - it's evolved over time not by iterating on the foundations, but by tacking new features on. Flexbox/grid have solved a lot of the layout issues that required messing around with display:inline-block/margin:auto/float/clear for so long (by basically pretending none of it ever existed), but other issues are still around. The fact that box-sizing:border-box is not the default is basically down to netscape winning the browser wars. Shadows overlap even when they logically shouldn't. It's not nightmare-level but it is hard to mentally model at first.

I don't think it helps that most of the CSS I've seen in the wild is vastly over-complicated.