this post was submitted on 07 May 2025
1159 points (96.8% liked)

Programmer Humor

24772 readers
1037 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] obinice@lemmy.world 46 points 1 month ago (33 children)

Okay but how do u center a div in 2025

[–] umbraroze@slrpnk.net 17 points 1 month ago (17 children)

If using plain CSS, usually it's enough to set width appropriately, and margin-left and margin-right to auto.

If using a Modern Frontend/CSS Framework, then may God have mercy on your poor soul.

(Seriously I just started a new project with TailwindCSS and I'm so confused. But not entirely desperate yet.)

[–] Korhaka@sopuli.xyz 11 points 1 month ago (7 children)

So what is the point of these frameworks if they make it harder?

[–] toddestan@lemm.ee 5 points 1 month ago

Generally I find many these frameworks will make some complicated things simple, but the cost is some things that were once simple are now complicated. They can be great if you just need the things they simplify - or in other words can stick to what they were intended for, but my favorite way of keeping things simple is to avoid using complicated and heavy frameworks.

load more comments (6 replies)
load more comments (15 replies)
load more comments (30 replies)