this post was submitted on 12 Sep 2023
97 points (88.8% liked)

Programmer Humor

32442 readers
891 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
[–] [email protected] 22 points 1 year ago

flexbox, my good man (or woman)

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

className="flex justify-center"

[–] [email protected] 1 points 1 year ago

I see you're a person of culture as well

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

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