this post was submitted on 12 Sep 2023
91 points (88.9% liked)

Programmer Humor

32410 readers
1 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 5 comments
sorted by: hot top controversial new old
[–] scrubbles@poptalk.scrubbles.tech 21 points 2 years ago

flexbox, my good man (or woman)

[–] moog@lemm.ee 11 points 2 years ago (1 children)

className="flex justify-center"

[–] yellow_fishtail@lemmy.world 1 points 2 years ago

I see you're a person of culture as well

[–] dog@suppo.fi 4 points 2 years ago* (last edited 2 years ago)

The good ol fashioned, <center><div>hecc</div></center> div {display: inline-box; text-align: initial}

[–] Bransons404@lemmy.world 1 points 2 years ago* (last edited 2 years ago)

But how do you center the grid itself?

Another fun one that works most of the time as a single item is "margin: 0 auto"