1. Home
  2. Computing & Technology
  3. Web Design / HTML

right

By , About.com Guide

right Description:

The right property defines how far the right of the element is offset from the right of the container element.

right in CSS Versions:
right Syntax:

right: <length> | <percentage> | auto | inherit

  • <length>
    A precise unit of meaurement.
  • <percentage>
    A percentage of the height of the containing block.
  • auto
    Determined by widths and heights of the elements.
  • inherit
    The element should have the same right value as the parent element.
right Initial Value:

auto

right Applies To:

Positioned elements.

right Inheritance:

This property is not inherited.

right Browser Support:
right Media Type:
  • Visual
right Examples:

Standard right property

<p style="right : 5px;">
This paragraph should display 5 pixels from the right of the container element.
</p>
right Special Notes:
  • Negative units are permitted.

More right Information

Return to the Style Library

Explore Web Design / HTML
About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. CSS
  5. Style Properties
  6. CSS Style Property: right>

©2009 About.com, a part of The New York Times Company.

All rights reserved.