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

outline

By Jennifer Kyrnin, About.com

outline Description:

The outline property defines the type of outline to be displayed. It is a shorthand property defining the style, width, and color of the outline.

outline in CSS Versions:

outline Syntax:

outline: [ <outline-color> <outline-style> <outline-width> ] | inherit

outline Initial Value:

invert none medium

outline Applies To:

All elements.

outline Inheritance:

This property is not inherited.

outline Browser Support:

outline media type:

  • Interactive
  • Visual

outline Examples:

A paragraph with an outline

<p style="outline: red solid thick;">
This paragraph has a thick red outline.
</p>

outline-width Special Notes:

  • Outlines do not take up space like borders do.
  • Outlines do not have to be rectangular.
  • You need to define the style, width, and width of the outline to have it display.
  • Colors can be defined as hexadecimal (#ff0000), RGB (rgb(255,0,0)), or color names (red).

More outline Information

Return to the Style Library

Explore Web Design / HTML

More from About.com

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

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

All rights reserved.