3 ms·
It's kind of funny seeing center-aligned "align-content just works!" aligned-left within the div in Firefox ESR. This is definitely a bleeding edge feature but
by superkuh 2y ago
It's kind of funny seeing center-aligned "align-content just works!" aligned-left within the div in Firefox ESR. This is definitely a bleeding edge feature but a welcome one. It'll be some years before I chose to use it.
edit: It's in the top left, not centered horizontally or vertically.
- atoav 2y agoYou do realize this is about vertical alignment, right?
- pinkmuffinere 2y agoPer the article, _align_ is for vertical distribution, and _justify_ is for horizontal. The example is actually behaving correctly. The naming is confusing though, imo
- red_trumpet 2y agoWell, to center the text in flow layout, you would use text-align:center;
- superkuh 2y agoAh! Thanks for the correction. Unfortunately it's not centered vertically either. It's in the top left.
- pinkmuffinere 2y agoOh lol that’s not great
- cabbageicefruit 2y agoFirefox has supported this since 125. So if you are on ESR 128 it should work fine https://caniuse.com/mdn-css_properties_align-content_block_context https://caniuse.com/mdn-css_properties_align-content_block_c...
- deleted 2y ago[deleted]
- telios 2y agoThat is what the article claims, but... I see it as left-aligned. Firefox 129.0.1 on MacOS.
- deleted 2y ago[deleted]
- deleted 2y ago[deleted]