←back to thread

451 points todsacerdoti | 1 comments | | HN request time: 0.472s | source
Show context
paulddraper ◴[] No.45057614[source]
> Yes, the syntax isn’t the prettiest, but is it really that hard?

Explain float: clear?

Does that have anything to do with display: flow-root?

And white-space is not actually whitespace?

And when does vertical-align work vs not?

---

^ That is all CSS (and not particularly edgy CSS, except for flow-root).

So....yes, CSS is really that hard. Unless you use the subset of CSS that you have decided to learn + use. Not unlike C++.

replies(5): >>45057689 #>>45057906 #>>45058326 #>>45058741 #>>45058981 #
whytaka ◴[] No.45057906[source]
I haven't used float in at least half a decade. CSS is easy.
replies(3): >>45058000 #>>45058272 #>>45059249 #
JohnFen ◴[] No.45058000[source]
I suspect, as with programming languages, some people think in a way that makes it easy for them and others think in a way that makes it hard.

Personally -- and I'm no web dev, so I probably don't count -- I think CSS is hard (maybe more irritating than hard, but in any case I wouldn't call it easy). In large part because the syntax is ugly, but also because it just doesn't "mesh" with me. If I'm reading it or writing it, I always feel like I'm having to decode it. But I can easily and happily work with some programming languages that most devs would cross the street to avoid.

Maybe that's also why some people are attracted to being web devs and others aren't?

As a user, nothing would thrill me more than if web pages just stopped using JS, though, so I am very happy that there is a feasible alternative to doing that that web devs could enjoy!

replies(2): >>45058825 #>>45069073 #
1. moritz ◴[] No.45069073[source]
> I always feel like I'm having to decode it. But I can easily and happily work with some programming languages that most devs would cross the street to avoid.

Those languages happen to be "imperative"? – the few backend devs I know who at least sort of vibe with CSS are all used to declarative programming. I think that might be at least one of the reasons?