3 ms·
> Box model + flex box + the display modes + "positioning" (stacking contexts) are typically the most confusing parts of CSS, I feel. That's like 90% of UI. Sa
by antisthenes 3y ago
> Box model + flex box + the display modes + "positioning" (stacking contexts) are typically the most confusing parts of CSS, I feel.
That's like 90% of UI. Saying they are the most confusing parts of CSS is basically admitting that CSS is awful to learn and use.
- moritzwarhier 3y agoYeah but I'm not sure if that's primarily a fault of CSS. I just wanted to enumarate the "hard parts". But even if I were to agree, what layout and "styling" language or API is the easiest, most logical and well-designed one in your opinion, that still covers the same variety of use cases? From print-like simple layouts to all complicated, nested application UIs for all imaginable screen sizes? Just curious, I'm not writing that much CSS anymore and I have cursed at it as well. But I feel it is also powerful and sometimes, yes, even beautiful to use. Often things that bother people are a feature at the same time, e.g. visible overflow by default.
- PH95VuimJjqBqy 3y agowhose fault is it then? We had desktop UI's in far simpler forms years before. Yeah, sure, there are new requirements, but those requirements didn't actually need the complexity of modern CSS. modern CSS came about because people like to be fancy. You value the wrong thing, you get the wrong thing.