Skip to content

24 ways to impress your friends

Vote down?

Thierry Koblentz

Hi Jonathan,

Great article!

One thing I’d mention is the fact that using the same value for left/right offsets does the magic on relatively positioned elements.

For example this styling:

.myBox { left: 50px; right: 50px;}

Should move the box to the left in a LTR context and to the right on a RTL context.
No need to rely on an attribute selector or anything…