331
submitted 11 months ago by otter@lemmy.ca to c/programming@programming.dev
top 50 comments
sorted by: hot top controversial new old
[-] undefined@links.hackliberty.org 107 points 11 months ago

Oh wonderful! Another 10 years and we can use it natively without polyfills!

[-] jmcs@discuss.tchncs.de 45 points 11 months ago* (last edited 10 months ago)
[-] mattd@programming.dev 36 points 10 months ago
[-] threeganzi@sh.itjust.works 4 points 10 months ago

Ah, that makes sense

load more comments (6 replies)
[-] Anders429@programming.dev 5 points 10 months ago

Doesn't stop your manager from requiring support for the other 4%.

[-] agelord@lemmy.world 8 points 10 months ago

Most websites these days refuse to support even Firefox.

[-] threeganzi@sh.itjust.works 4 points 11 months ago* (last edited 10 months ago)

~~Yeah, pretty much as Flex at 97% which is a nice comparison.~~

Edit: See mattd’s comment

load more comments (1 replies)
[-] HowManyNimons@lemmy.world 67 points 11 months ago

Why are we not angrier about css generally?

[-] Blackout@fedia.io 61 points 11 months ago

Because things were much worse in the beforetime

[-] Damage@feddit.it 45 points 11 months ago

What, you didn't enjoy slicing up images and arranging them in borderless tables?

[-] breckenedge@lemmy.world 13 points 11 months ago

Eh the software handled all that. Rounded corners tho…

[-] Tanoh@lemmy.world 13 points 10 months ago

Rounded corners tho…

Just a small gif (as png didn't exist/widely supported) that had the rounded corner. Then if someone wanted to change the color or background you would have to redo all the images. Fun fun.

[-] mindbleach@sh.itjust.works 8 points 10 months ago

Nah it's fine, we'll just do the whole website in Shockwave.

[-] Damage@feddit.it 4 points 10 months ago

WYSIWYG editors were evil

[-] Anticorp@lemmy.world 3 points 10 months ago

The software? Are you talking about Adobe ~~Dreamweaver~~ Dreamcrusher or something?

[-] palordrolap@fedia.io 3 points 10 months ago

My money's on Microsoft Frontpage

load more comments (2 replies)
[-] curry@programming.dev 4 points 10 months ago

Please indicate where IE touched you.

[-] Anticorp@lemmy.world 6 points 10 months ago

*gestures broadly at entire body

load more comments (1 replies)
[-] humorlessrepost@lemmy.world 3 points 10 months ago

In my faux column

load more comments (1 replies)
[-] Angry_Autist@lemmy.world 48 points 11 months ago

I am blisteringly angry about CSS in general AND THIS FUCKING ISSUE IN PARTICULAR since 2005 at the very latest. Likely enough to up the average for several thousand people with only mild dislike for CSS.

If CSS had a church I would burn it down. In minecraft of course.

[-] FizzyOrange@programming.dev 38 points 11 months ago

I would say because a) there are zero alternatives, and b) it's pretty powerful; you can generally do pretty much any layout even if it requires hacks, c) switching to something else is clearly infeasible so it's not worth even asking for.

Just have to live with it (on the web at least).

[-] Damage@feddit.it 38 points 11 months ago

d) we remember the world before it was introduced

[-] Tja@programming.dev 18 points 11 months ago
[-] Kissaki@programming.dev 9 points 10 months ago
[-] Blackmist@feddit.uk 9 points 10 months ago

What we were promised:

Content in one HTML document.

Styles in other CSS, able to apply any to completely alter the layout of the document.

What we got:

<div class="mt mid flex lt-8 no-margin up-1">

[-] Anticorp@lemmy.world 7 points 10 months ago* (last edited 10 months ago)

CSS 3 is solid, mate. You can do just about anything with it if you know what you're doing.

[-] filcuk@lemmy.zip 14 points 10 months ago

Some of the pure CSS stuff I've seen is actually insane.

Obviously not actually for real world use, but a great example is https://github.com/kkuchta/css-only-chat

[-] Anticorp@lemmy.world 3 points 10 months ago

With pseudo sectors, flex, and grid, your options are amazing. I haven't encountered a design I can't build in a very long time.

load more comments (1 replies)
[-] Lemminary@lemmy.world 6 points 11 months ago

BaCkWaRdS cOmPaTiBiLiTy 😵‍💫

load more comments (2 replies)
[-] walter_wiggles@lemmy.nz 62 points 11 months ago* (last edited 11 months ago)
* { display: flex; }
[-] refalo@programming.dev 48 points 11 months ago

Is it just me or is the irony lost on the author? It says "align-content: center" but it's only vertically aligned...

[-] bitjunkie@lemmy.world 18 points 10 months ago

That's because under flexbox for horizontal alignment you use a different property called justify-content.

load more comments (2 replies)
[-] jol@discuss.tchncs.de 9 points 10 months ago

Because we already have a way to center text horizontally...

[-] refalo@programming.dev 3 points 10 months ago* (last edited 10 months ago)

Yes but my grief was with the naming... why not call it vertical-center? Just "center" is very confusing to me because it does not include horizontal.

load more comments (1 replies)
[-] PunchingWood@lemmy.world 30 points 11 months ago

Well that came like 10 years too late lol

I don't think I'll ever use it considering it was already easily possible with flexbox, and before that (although dirtier) with tables as well.

[-] cley_faye@lemmy.world 19 points 11 months ago

Well, we've been vertically centring content with no-trick pure CSS for years now, so, good I guess?

[-] lud@lemm.ee 4 points 10 months ago

no-trick pure CSS

What do you mean? How else would you center content without CSS?

[-] cley_faye@lemmy.world 17 points 10 months ago

There were tons of options with multiple HTML elements with a sequence of CSS properties to reliably provide vertical centering (and also use vertical space at the same time) back in the days.

Now, between flex and grid (mainly flex for me, I find them more convenient) all the HTML scaffolding we used to make this work can be removed to get the same result. That's what I mean with "no trick".

load more comments (1 replies)
[-] Anticorp@lemmy.world 8 points 10 months ago

It's worthless if you have to give it an explicit height, and also if it doesn't have support in all browsers.

load more comments
view more: next ›
this post was submitted on 19 Aug 2024
331 points (98.8% liked)

Programming

21556 readers
209 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS