DevTools/CSSTips: Difference between revisions

No edit summary
Line 84: Line 84:
Text Direction:
Text Direction:
* For margins, padding and borders, use start/end rather than left/right
* For margins, padding and borders, use start/end rather than left/right
** Example: Use <tt>margin-start: 3px;</tt> not <tt>margin-left: 3px</tt>
** Example: Use <tt>-moz-margin-start: 3px;</tt> not <tt>margin-left: 3px</tt>
* When there is no special RTL-aware property (eg. float: left|right) available, use the pseudo :-moz-locale-dir(ltr|rtl)  
* When there is no special RTL-aware property (eg. float: left|right) available, use the pseudo :-moz-locale-dir(ltr|rtl)  
* Remember that while a tab content's scrollbar still shows on the right in RTL, an overflow scrollbar will show on the left
* Remember that while a tab content's scrollbar still shows on the right in RTL, an overflow scrollbar will show on the left
Confirmed users
295

edits