top | item 35362653

(no title)

amsheehan | 2 years ago

I agree with exactly one sentence in the comment thread so far. "CSS requires experience"

If you're interested in actually learning css, and don't just want to complain about how poorly written css is bad, this website is invaluable and provides concrete examples of how to build layouts and style elements.

https://web.dev/learn/css

discuss

order

epgui|2 years ago

I agree, but I'd even say that becoming pro at CSS is orders of magnitude easier than becoming pro at your average programming language. I think engineers just tend to not take the task seriously, and don't apply themselves enough.

You just need to actually understand the box object model and a handful of common gotchas.

eurasiantiger|2 years ago

CSS is essentially declarative programming for several different black-box systems.

How selectors are written has exponential performance implications. Using the wrong type of transform might make your page forego hardware acceleration, or use more battery on a mobile device.

At least typical programming languages are targeting a known set of environments and devices with known characteristics.

You definitely need to understand a lot more than the box model and a handful of gotchas.