106 points

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

permalink
report
reply
43 points
*

It’s already supported by 96% 87% of browsers currently in use.

permalink
report
parent
reply
34 points

I think this is what you should be looking at, which is at 82%

https://caniuse.com/mdn-css_properties_align-content_block_context

permalink
report
parent
reply
4 points

Ah, that makes sense

permalink
report
parent
reply
2 points

How are those old chrome and safari versions still so prevailing? And what’s up with Samsung Internet, is it not a chromium based browser?

permalink
report
parent
reply
5 points

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

permalink
report
parent
reply
8 points

Most websites these days refuse to support even Firefox.

permalink
report
parent
reply
4 points
*

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

Edit: See mattd’s comment

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply
65 points

Why are we not angrier about css generally?

permalink
report
reply
60 points

Because things were much worse in the beforetime

permalink
report
parent
reply
45 points

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

permalink
report
parent
reply
13 points

Eh the software handled all that. Rounded corners tho… <shudder>

permalink
report
parent
reply
3 points

Please indicate where IE touched you.

permalink
report
parent
reply
1 point

Before 1996?

permalink
report
parent
reply
48 points

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.

permalink
report
parent
reply
38 points

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).

permalink
report
parent
reply
38 points

d) we remember the world before it was introduced

permalink
report
parent
reply
18 points

<table />

permalink
report
parent
reply
9 points

It good

permalink
report
parent
reply
9 points

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”>

permalink
report
parent
reply
7 points
*

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

permalink
report
parent
reply
14 points

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

permalink
report
parent
reply
3 points

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.

permalink
report
parent
reply
2 points
*

https://csszengarden.com comes to my mind again.

permalink
report
parent
reply
6 points

BaCkWaRdS cOmPaTiBiLiTy 😵‍💫

permalink
report
parent
reply
2 points

Compared to what? JS? (/joke)

permalink
report
parent
reply
1 point

It’s js being the problem in frontend development, not css

permalink
report
parent
reply
62 points
*
* { display: flex; }
permalink
report
reply
47 points

Is it just me or is the irony lost on the author? It says “align-content: center” but it’s only vertically aligned…

permalink
report
reply
17 points

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

permalink
report
parent
reply
2 points

Right, which isn’t confusing at all /s

permalink
report
parent
reply
2 points

There’s a learning curve but it makes sense once you’ve used it for a bit. I recommend the frog game: https://flexboxfroggy.com/

permalink
report
parent
reply
8 points

Because we already have a way to center text horizontally…

permalink
report
parent
reply
3 points
*

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.

permalink
report
parent
reply
2 points

Because of consistency with the rest of the box model

permalink
report
parent
reply
30 points

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.

permalink
report
reply

Programming

!programming@programming.dev

Create post

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



Community stats

  • 3.1K

    Monthly active users

  • 892

    Posts

  • 7.7K

    Comments