Joana Borges Late
1 min readApr 11, 2022

--

I think *CSS* is difficult and HTML is ugly, CSS may look simple when we look at its rules one by one. But when we construct a big page with the layout rules working in cascade, more media queries, more classes.... I mean, it is hard to understand what the result will be.

Tailwind, React, Vue, CSS processors, etc. exist because MANY people don't think CSS is easy.

Like I wrote in the article, we need TRICKS to do simple things.

Anyway, the article was *NOT* about CSS being difficult. It was about CONTROLLING the result. And no one here told me how to use CSS to solve the issues I presented.

Talking about tricks, let's see what css-tricks.com has to say:

{

I feel we, the community, have to acknowledge that CSS is easy to get started with and hard to master.

You can look at a matching Ruleset, and still not have the whole styling story. There might be multiple matching rulesets in disparate places, including in places that only apply conditionally, like within @media queries.

Even if you think you’ve got a complete handle on the styling information in the CSS, you still may not, because styling is DOM-dependent. You need information from both places to know how something will be styled.

You have no control over the device, browser, version, resolution, input mode, etc., all of which can be CSS concerns.

Making changes to CSS can be scary because it’s hard to understand everywhere it applies.

}

https://css-tricks.com/what-makes-css-hard-to-master/

--

--

No responses yet