4 ms·
Sure man, blame the user. How many hours did humanity lose trying to center things in CSS? How many hours did humanity lose trying to understand if the size o
by d--b 5y ago
Sure man, blame the user.
How many hours did humanity lose trying to center things in CSS?
How many hours did humanity lose trying to understand if the size of a box is set by the parent or the child?
Why not admit that CSS has been a giant shit show since inception, and that !important is just another crappy band-aid feature in that mess of a toolbox?
I have been designing APIs for 15 years and I know people misuse them all the time. And I know it’s frustrating. I also know when I have been wrong, and if I were in the man’s shoes, I’d rather be sorry that I created that monstrous piece of technology rather than blaming the millions of developers who just didn’t find any other effing way than to set !important on a random property.
- phasersout 5y agoThe only problem with CSS is that a lot of people use it without understanding the basic rules of the cascade. !important is just one thing another thing is that you shouldn't use ids as in id="myId" for styling because an id has too much weight compared to tags or classes. The only way to override a styled id is with another id - and at this point everybody should realize that no thing should have two identification-tags! CSS is beautiful and extremely logical. I can very much recommend the book "CSS in depth" by Keith J. Grant - by reading this you go from asking CSS questions on Stackoverflow to answering them. edit: just to make clear I made the same mistakes for years.