@Bye@lemmy.world
link
fedilink
English
42Y

deleted by creator

BlackEco
link
fedilink
English
7
edit-2
2Y

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
2Y

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>

Thorned_Rose
link
fedilink
32Y

Center tag is deprecated in HTML5

BlackEco
link
fedilink
32Y

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

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

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
  • 18 users / day
  • 117 users / week
  • 455 users / month
  • 2.2K users / 6 months
  • 1 subscriber
  • 1.69K Posts
  • 37.2K Comments
  • Modlog