this post was submitted on 07 May 2025
1150 points (96.7% liked)

Programmer Humor

24670 readers
298 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
[–] [email protected] 45 points 1 month ago (32 children)

Okay but how do u center a div in 2025

[–] [email protected] 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.)

[–] [email protected] 11 points 1 month ago (7 children)

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

[–] [email protected] 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 (29 replies)