Visit Mozilla.org

CSS:-moz-padding-end

From MDC

« CSS Reference « CSS Reference:Mozilla Extensions

[edit] Summary

When rendering right-to-left text, -moz-padding-end flips the element's padding without having to specify absolute left or right. In a left-to-right text display -moz-padding-end is treated as a right sided padding, while in a right-to-left display it is padded on the left.

The opposite of this option would be -moz-padding-start.

  • 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-end: <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-end: 5%;
  }

  .sidebox {
    -moz-padding-end: 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