Visit Mozilla.org

CSS:-moz-padding-start

From MDC

« CSS Reference « CSS Reference:Mozilla Extensions

[edit] Summary

In Right to Left situations -moz-padding-start flips the elements padding without having to specify absolute left or right. In a Left to Right display -moz-padding-start would be treated as a left sided padding, and alternately in a Right to Left display it would become the right.

Opposite of this option would be -moz-padding-end

  • Initial value: 0
  • Applies to: all elements except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column
  • Inherited: no
  • Percentages: refer to width of closest block-level ancestor
  • Media: visual
  • Computed value: the percentage as specified or the absolute length

[edit] Syntax

-moz-padding-start: <length> | <percentage> | inherit | auto;

[edit] Values

<length>
Specifies a fixed width.
<percentage>
a percentage with respect to the width of the containing block.

[edit] Examples

View Live Examples

  .content {
    -moz-padding-start: 5%;
  }

  .sidebox {
    -moz-padding-start: 10px;
  } 

[edit] Notes

[edit] Specifications

Not yet candidate for Specifications

[edit] See also

padding, padding-bottom, padding-left, padding-right, padding-top, -moz-padding-start, -moz-padding-end, border, margin