4 ms·
Vertical centering has been trivial in numerous ways for many years. At least since flexbox. This is mostly a convenience to achieve what flexbox already did, w
by eyelidlessness 2y ago
Vertical centering has been trivial in numerous ways for many years. At least since flexbox. This is mostly a convenience to achieve what flexbox already did, with a simpler (albeit more error prone) imposition on document structure.
With that in mind, which “really weird priorities” would you have deprioritized relative to this convenience?
- The_Colonel 2y agoIndeed, since at least 1997, when HTML 3.2 standardized tables.
- Levitz 2y agoI don't think it's fair to dismiss something as "convenience". Convenience is very important in development, convenience is the reason we use CSS to begin with. The idea of centering an element within another is extremely basic. Something someone might want to do literally within the first 30 minutes of touching CSS for the first time and historically that person, who probably expected some evident answer instead found a 5000 vote post in stackoverflow with information on flexbox, margin auto, text align and half a dozen hacks for different situations. Like I can do a js implementation of array.has() in a couple of minutes. I would still be shocked if it was never implemented by default and it got implemented now.
- eyelidlessness 2y agoAll of what you say is reasonable, as written. But I also don’t think it’s fair to characterize my comment as dismissing convenience. I think “really weird priorities” is a strong claim, and I think it deserves perspective and warrants questioning.