VeganPizza69 Ⓥ to Programmer [email protected]English • 11 months agoThe Centererlemmy.worldimagemessage-square27fedilinkarrow-up1510arrow-down145file-text
arrow-up1465arrow-down1imageThe Centererlemmy.worldVeganPizza69 Ⓥ to Programmer [email protected]English • 11 months agomessage-square27fedilinkfile-text
Art by gfcf14 https://www.facebook.com/webdevtoons https://twitter.com/webdevtoons https://www.instagram.com/webdevtoons/ https://www.reddit.com/user/gfcf14/
minus-squareI Cast FistlinkEnglish5•edit-211 months agoIt actually has <center> for centering things horizontally. Yes, it’s literally <center> content </center>. It’s been around since the early 90s, too. Dunno about a vertical center</center>
minus-squareBlackEcolinkfedilink3•11 months agocenter is mostly for centering text and is being deprecated in favor of text-align and margin-*: auto https://developer.mozilla.org/en-US/docs/Web/HTML/Element/center
It actually has <center> for centering things horizontally. Yes, it’s literally
<center> content </center>
. It’s been around since the early 90s, too. Dunno about a vertical center</center>center
is mostly for centering text and is being deprecated in favor oftext-align
andmargin-*: auto
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/centerCenter tag is deprecated in HTML5