3 ms·
> The fact that people find it so confusing is one. Problem is that they never learned it. They jump in thinking "I know how to code, everything should make se
by Raphmedia 8y ago
> The fact that people find it so confusing is one.
Problem is that they never learned it. They jump in thinking "I know how to code, everything should make sense to me" and hit a wall. CSS is not like regular coding.
I went to a technical college and one of the class was on CSS. It's the class that everyone aced. Even the people who would fail miserably in every other parts of the industry.
CSS is not hard but it requires some memorization.
- nine_k 8y agoLogic in many cases is preferable to memorization. Not only you need to memorize less upfront, you can expect new additions to follow it, and not need to memorize much to start using them. Compare how easy it is to pick up e.g. Spanish writing vs English writing vs Chinese writing, assuming that you already can speak it.
- Raphmedia 8y agoThere's logic in CSS. Selector specificity, cascade, inheritance, display types, etc. Once you grasp the few parts that requires understanding you only need to remember the syntax and the declarations. Then the real challenge is to organize your stylesheets in such as way that allows your styles to grow. I've seen from experience that most people don't even try to learn the language. They come in with no knowledge of the cascade, wonder why everything fails and blame it on the language. Most "bugs" related to CSS can be spotted and fixed in minutes. Ex: ID selectors are always stronger than classes when it comes to selector specificity. A class can also be mixed with an element selector to increase its weight but it will never beat an ID. Someone who is not aware of this will try to have a class selector be stronger than an ID and get strange results. Instead of fixing the selectors they put an !important on the class selector to have it be stronger than the ID. The stylesheet then quickly become a mess.
- sizzle 8y agoOr !important; everywhere