cm0002@lemmy.world to Programmer Humor@programming.dev · 19 hours agoProgrammers then and nowlemmy.mlimagemessage-square125fedilinkarrow-up1931arrow-down127cross-posted to: programmerhumor@lemmy.ml
arrow-up1904arrow-down1imageProgrammers then and nowlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 19 hours agomessage-square125fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareimpedans@lemmy.worldlinkfedilinkarrow-up8·edit-27 hours agoIf you define what you mean by centering I’ll give you a straight answer. Vertically? Horizontally? Center the text or the entire box? Compared to the viewport, the parent container or the entire page? “Centering” isn’t as straight forward as you’d think, and what you actually want usually depends on the situation.
minus-squareimpedans@lemmy.worldlinkfedilinkarrow-up4·6 hours agoYeah that works if you wanna center a box of content it relative to the parent container, either horizontally or vertically. For other situations we’ve got different tools
If you define what you mean by centering I’ll give you a straight answer.
Vertically? Horizontally? Center the text or the entire box? Compared to the viewport, the parent container or the entire page?
“Centering” isn’t as straight forward as you’d think, and what you actually want usually depends on the situation.
Nah, just flex them boxes
Yeah that works if you wanna center a box of content it relative to the parent container, either horizontally or vertically. For other situations we’ve got different tools