this post was submitted on 12 Sep 2023
93 points (87.8% liked)

Programmer Humor

32467 readers
1007 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

flexbox, my good man (or woman)

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

className="flex justify-center"

[–] yellow_fishtail@lemmy.world 1 points 1 year ago

I see you're a person of culture as well

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

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

[–] Bransons404@lemmy.world 1 points 11 months ago* (last edited 11 months 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"