Difference between revisions of "CSS GUIDE RIGHT"

From CDOT Wiki
Jump to: navigation, search
Line 7: Line 7:
<td><b>[http://developer.mozilla.org/en/docs/CSS:@media#Media_groups Media Group:]</b>
<td><b>[http://developer.mozilla.org/en/docs/CSS:%40media#Media_groups Media Group:]</b>

Revision as of 16:12, 10 April 2007

This document is a work in progress and is subject to change.


The right property is used to horizontally offset from the right edge of an element.

Applicability:The right property can be used for positioned elements.
Media Group: Visual
Default Value:auto


TARGET_ELEMENT{right: inhert !important}
TARGET_ELEMENT{right: auto}
TARGET_ELEMENT{right: 20%}
TARGET_ELEMENT{right: 20px}

Legal Values

inheritExplicitly sets the value to that of the parent
autoAllows the browser to calculate the right position of the element
percentageSets the right position in a percentage from the right edge. Can be 0%-100%
lengthSets the right position in pixels (px), centimeters (cm), etc, from the right edge.

Mozilla Recommended Values

Usage Examples

position: absolute;
right: 20px

position: absolute;
right: 15%

position: absolute;
right: auto


When right property is used with the position property, if the position property has a value of "static", the right property has no effect on the element.

Specification Conformance

Browser Compatibility

  • Netscape 6, 7
  • Mozilla 1
  • Firefox 1, 2
  • Internet Explorer 5, 6

See Also