back

by porridgeraisin·2y ago·view on hn ↗
The whole separating markup from presentation doesn't quite work for any non trivial web-app type of webpage.

Because the presentation affects markup. You'll have to add wrapping divs to accomplish any kind of complex layout for example.

Once you can't separate it in your mental space, it doesn't matter that its in two different files.

1 comments
But the solution is to turn CSS into inline styles?

> You'll have to add wrapping divs to accomplish any kind of complex layout for example.

I don't know about that. I think selectors are pretty powerful. Have managed to avoid littering the HTML with structural nodes by using them creatively. CSS has gained a huge number of features since I first learned it, there's even better ways to do stuff now.