▲ 465 ▼ The Centerer (lemmy.world) submitted 3 years ago by veganpizza69@lemmy.world to c/programmerhumor@lemmy.ml 25 comments fedilink hide all child comments Art by gfcf14 https://www.facebook.com/webdevtoons https://twitter.com/webdevtoons https://www.instagram.com/webdevtoons/ https://www.reddit.com/user/gfcf14/
[+] Bye@lemmy.world 4 points 3 years ago (3 children) [deleted] permalink fedilink source hideshow 6 child comments replies: [–] BlackEco@lemmy.blackeco.com 7 points 3 years ago* Why doesn’t html just have hcenter and vcenter tags or something? HTML is a markup language, its purpose is to structure documents, while CSS can be seen as an additional layer that allows you to style and alter the layout of HTML documents. Because of this philosophy, it wouldn't make any sense to have such tags. permalink fedilink source parent [–] ICastFist@programming.dev 5 points 3 years ago* (2 children) It actually has 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 permalink fedilink source parent hideshow 4 child comments replies: [–] Thorned_Rose@kbin.social 3 points 3 years ago Center tag is deprecated in HTML5 permalink fedilink source parent [–] BlackEco@lemmy.blackeco.com 3 points 3 years ago center 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 permalink fedilink source parent [–] kameecoding@programming.dev 3 points 3 years ago well with the css grid and flexbox it's no longer a problem. permalink fedilink source parent
[–] BlackEco@lemmy.blackeco.com 7 points 3 years ago* Why doesn’t html just have hcenter and vcenter tags or something? HTML is a markup language, its purpose is to structure documents, while CSS can be seen as an additional layer that allows you to style and alter the layout of HTML documents. Because of this philosophy, it wouldn't make any sense to have such tags. permalink fedilink source parent
[–] ICastFist@programming.dev 5 points 3 years ago* (2 children) It actually has 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 permalink fedilink source parent hideshow 4 child comments replies: [–] Thorned_Rose@kbin.social 3 points 3 years ago Center tag is deprecated in HTML5 permalink fedilink source parent [–] BlackEco@lemmy.blackeco.com 3 points 3 years ago center 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 permalink fedilink source parent
[–] Thorned_Rose@kbin.social 3 points 3 years ago Center tag is deprecated in HTML5 permalink fedilink source parent
[–] BlackEco@lemmy.blackeco.com 3 points 3 years ago center 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 permalink fedilink source parent
[–] kameecoding@programming.dev 3 points 3 years ago well with the css grid and flexbox it's no longer a problem. permalink fedilink source parent