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.
Firefox 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_c...
CSS adds vertical centering in 2024
11–20 of 50 posts
Re: CSS adds vertical centering in 2024
#12Re: CSS adds vertical centering in 2024
#13It'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.
Per the article, _align_ is for vertical distribution, and _justify_ is for horizontal. The example is actually behaving correctly. The naming is confusing though, imo
Re: CSS adds vertical centering in 2024
#14It'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.
Firefox 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_c...
Re: CSS adds vertical centering in 2024
#15made-by-humans: enabled
Re: CSS adds vertical centering in 2024
#16Re: CSS adds vertical centering in 2024
#17It seems odd that "style sheets" turned into layout language. ;-)
From SGML, precursor to HTML:
> Style sheets provide the means to specify the rendering of arbitrary elements, including whether an element is rendered as block or inline.
Re: CSS adds vertical centering in 2024
#18This was already a feature for flex box and grid. They’re just adding this to flow layout. Still a welcome addition but consider that all browsers that add support for this will already have support for flex and grid.
Re: CSS adds vertical centering in 2024
#19Earlier quoted context omitted.
Firefox 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_c...
That is what the article claims, but... I see it as left-aligned. Firefox 129.0.1 on MacOS.
Re: CSS adds vertical centering in 2024
#20Earlier quoted context omitted.
Firefox 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_c...
That is what the article claims, but... I see it as left-aligned. Firefox 129.0.1 on MacOS.