this post was submitted on 19 Oct 2023
152 points (96.3% liked)
linuxmemes
20880 readers
7 users here now
I use Arch btw
Sister communities:
- LemmyMemes: Memes
- LemmyShitpost: Anything and everything goes.
- RISA: Star Trek memes and shitposts
Community rules
- Follow the site-wide rules and code of conduct
- Be civil
- Post Linux-related content
- No recent reposts
Please report posts and comments that break these rules!
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
CSS was invented in 1996
Web devs before 1996:
Things were centered easily
Ah yes, good old
top:50% left:50% margin-left:-50% margin-top:-50%
Before that was worse, straight up center tags everywhere and assuming the user's screen was 1024x768 lol. Things today are sooooo much nicer with flexbox and especially CSS grid 😍
Simpler tools, for a more civilized age
Ah yes good old times. by the way, yes it exists
cue GitHub READMEs flashbacks
This would be so good nowdays. Why did they remove it?
For semantic reasons.
Each element in HTML should correspond to a proper semantic element. For example, navigation elements should go within <nav>. Elements like <center> are remanants of the good ol days when css wasn't mature enough and you'd add color to an element via attributes. Obviously, center has no semantic meaning and pretty much useless in web dev now. It hasn't been removed but deprecated.
These are "should"s and not "must"s. This is why divs exist because many times it's hard to decide what semantic meaning a piece of content has, so divs are just generic components when you can't think of an better semantic tag.
p align=center