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
Newsletter
Level up your skills with useful web development & UX tips via e-mail.
Comments
If you have any thoughts, please contact me on LinkedIn or see the contact page for more options.