Firefox/CSS Tips: Difference between revisions

m
→‎Localization: -moz-margin-start -> margin-inline-start (unprefixing)
(Added tip.)
m (→‎Localization: -moz-margin-start -> margin-inline-start (unprefixing))
Line 92: Line 92:
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>-moz-margin-start: 3px;</tt> not <tt>margin-left: 3px</tt>
** Example: Use <tt>margin-inline-start: 3px;</tt> not <tt>margin-left: 3px</tt>
** Tip: whenever you specify an <tt>unbalanced</tt> margin, padding or border style (i.e. the value for left is different from the value for right), think of using -end/ -start
** Tip: whenever you specify an <tt>unbalanced</tt> margin, padding or border style (i.e. the value for left is different from the value for right), think of using -end/ -start
* 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)  
Confirmed users
87

edits