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
towb#
So back in the day you had to know a lot of weird tricks. The goal was usually to make it look the same in every browser so you had to know the differences between them and what caused them. I think that's why I don't find it very hard today, even though I don't do much CSS it usually works. With the changes to CSS since then, that old knowledge might be a lot harder to find for newcomers.
mattferderer#
I suggest trying a CSS framework that handles most use cases for you. Just like we use frameworks with every other language, CSS/Sass/Less/JS frameworks can help here so you aren't constantly reinventing the wheel.

The ones you can customize with something like Sass or JS are my favorite when I don't want a basic template looking website. Tailwind, Foundation & Bootstrap are popular choices.

vuild#
If anyone sees this, I'm a little late but understand your frustrations, it seems a lot of people in this thread feel the same.

I'd be more than happy to teach a group some basics/ simple rules to make your life easier, just let me know how.
I make stuff like this to teach myself https://vuild.com/game-watch/ (resize)

Load more comments