Skip to content

Instantly share code, notes, and snippets.

View mufaddalmw's full-sized avatar

Mufaddal Motorwala mufaddalmw

View GitHub Profile
@mufaddalmw
mufaddalmw / RTL.md
Created July 4, 2018 12:56 — forked from Integralist/RTL.md
BBC News' RTL (right to left) solution

Right-to-Left (RTL)

Implementation

There are two methods to use in order to flip CSS styles: interpolated properties and the flip() function.

  • Interpolation should be used for any property which has a direction (e.g. padding-left, margin-right, border-right, left, etc.)
  • flip() should be used for all other properties

Which properties need to be flipped?