You want margin-inline-start
Publikováno: 30.3.2021
David Bushell in ”Changing CSS for Good“:
I’m dropping “
left
“ and “right
“ from my lexicon. The new CSS normal is all about Logical Properties and Values […] It can be as easy as replacing left/right
…
The post You want margin-inline-start appeared first on CSS-Tricks.
You can support CSS-Tricks by being an MVP Supporter.
David Bushell in ”Changing CSS for Good“:
I’m dropping “
left
“ and “right
“ from my lexicon. The new CSS normal is all about Logical Properties and Values […] It can be as easy as replacing left/right with inline start/end. Top/bottom with block start/end. Normal inline flow, Flexbox, and Grid layouts reverse themselves automatically.
I figured it made sense as a “You want…” style post. Geoff has been documenting these properties nicely in the Almanac.
The post You want margin-inline-start appeared first on CSS-Tricks.
You can support CSS-Tricks by being an MVP Supporter.