flexbox, my good man (or woman)
this post was submitted on 12 Sep 2023
100 points (90.3% liked)
Programmer Humor
32558 readers
186 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
className="flex justify-center"
I see you're a person of culture as well
The good ol fashioned,
<center><div>hecc</div></center>
div {display: inline-box; text-align: initial}
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"