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
kowdermeister#
I feel similar but with the functional languages you mentioned. But I know they are not special or dark art, just tools I haven't spent enough time to master because I lacked motivation.

As others mentioned the complexity of CSS makes it very powerful, thus complex. Don't underestimate it as some low level icing.
I would start here with CSS:
https://www.youtube.com/watch?v=I9XRrlOOazo&list=PL4cUxeGkcC...

jorgesborges#
There's so much value to learning CSS and all it takes is time and practice. It's not an art but I think competent programmers are justifiably irritated when their skills don't apply to what is ostensibly just another language or syntax. They'll walk away when they realize it takes time to do things which ought to be simple like making a layout with some columns. But it's actually really fun after a while. And you're like a wizard to everyone that was just too lazy to learn it.
miguelmota#
CSS is not hard, but it's certainly unusual compared to programming in any other language because you're dealing with the DOM. HTML was originally designed to display simple text documents, not fully fledged single page responsive and progressive web apps. My single piece of advice is to master the top CSS properties, relative/absolute/fixed positioning, and grids & flexbox for layout. CSS has come a long way and it's 10x easier to layout content compared to just 10 years ago.
tobyhinloopen#
Experience. Reading what features there are and trying them out.

CSS can be fun. Its easy to learn but hard to master.
Be careful; if people recognize you know anything more than basic CSS, you’ll become the CSS helpdesk

Load more comments