- cross-posted to:
- programmerhumor@lemmy.ml
- cross-posted to:
- programmerhumor@lemmy.ml
I am not allowed to credit the site that has this disaster. Its owner said “Nobody should see that”
Client: “Can you switch these two colours, you have 1 minute to fix it or you’re fired!”
Result:
my eyes
The author should be killed for indentation alone.
I know, right? Needs more tab.
Well, that’s what you get for using classes like “white” and “lime”.
Exactly this. Bootstrap killed the css star.
color: lime !important; z-index: 1000000;
I love the superstitious z-index just in case it does something to help.
At least that’s actually easy and quick to do and is the only way of doing it. Centering a div however has 81639393 ways and it seems the one that works is different every time
Bro its so easy bro, just use flexboxgridcolumns its been a standard since 2010 just flex it bro you haven’t learned to flex yet just check w3c schools and add a flex you can polyfill it but don’t use that hacked one use the good flexpolyfill then { content-align-middle-child-elements: center-middle-true-neutral } so easy with flex bro
the userstyle experience:
Yeah, userstyles are wild. You learn so many ways how to not use CSS. Everything is
!important
and rather than adjusting the HTML to change the structure, you get to do it all in CSS. 🫠
Not allowed to credit the site in your text editor?
Is the owner in the room with you now?
I am very, very surprised about the competence of the commenters here. I have had many discussions on reddit about the advantages of meaningful instead of presentational class-naming and you’re normally met with great resistance, especially with users of frameworks like Bootstrap and Tailwind.
Here, everyone seems to either ‘get it’ or is willing to hear why classes like .lime are bad. Very cool.
People that advocate for presentation naming haven’t endured a major company rebrand.
Frameworks like bootstrap are a cancer.
good for quick and dirty small projects tho…
It is like fentanyl don’t do it
It is like femtanyl
don’tdo it
Worse.
Isn’t cascading styles the whole point of Cascading Style Sheets?
You absolute fool. You must never utter its full name, lest you summon its wrath!