@Bye@lemmy.world
link
fedilink
English
41Y

deleted by creator

well with the css grid and flexbox it’s no longer a problem.

BlackEco
link
fedilink
English
7
edit-2
1Y

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.

I Cast Fist
link
fedilink
English
5
edit-2
1Y

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>

BlackEco
link
fedilink
31Y

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

Thorned_Rose
link
fedilink
31Y

Center tag is deprecated in HTML5

Create a post

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.
  • 1 user online
  • 61 users / day
  • 247 users / week
  • 417 users / month
  • 2.88K users / 6 months
  • 1 subscriber
  • 1.53K Posts
  • 33.9K Comments
  • Modlog