CSS logical properties (better spacing)

In the modern web, we have more and more tools to ensure the best experience for users. One of my recent findings is CSS logical spacing, which maps to physical spacing regardless of the writing mode, text direction, and orientation.

.test {
  margin-inline: 10px 20px;
  padding-inline: 10px 20px;
}

Further reading

Share

Thanks for reading. If you liked it, consider sharing it with friends via:

Let's be in touch!

Don't miss other useful posts. Level up your skills with UX, web development, and productivity tips via e-mail.

Comments

If you want to comment, write a post on social media and @mention me or write to me directly on the contact page.