CSS logical properties https://gomakethings.com/css-logical-properties/

CSS logical properties
Today, I wanted to talk about CSS logical properties, a newer (and arguably better) way to define properties that are directional in nature. Let’s dig in! The *-top, *-bottom, *-left, and *-right properties A lot of CSS properties—things like margin, padding, border and more—have directional variants. Take the margin property, for example. Let’s say you wanted a margin of 1em on the top and bottom, 2em on the left and right.
gomakethings.com
Link author:
Chris Ferdinandi ⚓️@cferdinandi@mastodon.social