Вы находитесь на странице: 1из 2

2/14/14

HOME

CSS Outline Properties

HTML

CSS

JAVASCRIPT

JQUERY

XML

ASP.NET

PHP

SQL

MORE...

REFERENCES

EXAMPLES

FORUM

Search w3schools.com

CSS Basic
CSS HOME
CSS Introduction
CSS Syntax
CSS Id & Class
CSS How To
CSS Backgrounds

WEB HOSTING

CSS Outlines

Best Web Hostin

UK Reseller Host

CSS Text
CSS Fonts
CSS Links

Developers Love

Previous

Next Chapter

CSS Lists

An outline is a line that is drawn around elements (outside the borders) to make the element "stand out".

CSS Tables

The outline properties specify the style, color, and width of an outline.

CSS Box Model


CSS Box Model
CSS Border
CSS Outline
CSS Margin

Examples

SHARE THIS PA

Draw a line around an element (outline)


This example demonstrates how to draw a line around an element, outside the border edge.
Set the style of an outline
This example demonstrates how to set the style of an outline.

CSS Advanced

Set the color of an outline


This example demonstrates how to set the color of an outline.

CSS Dimension
CSS Display

FREE Website BUIL

FREE Website C re

CSS Padding

CSS Grouping/Nesting

WEB BUILDING

XML Editor - Free T

Set the width of an outline


This example demonstrates how to set the width of an outline.

CSS Positioning
CSS Floating
CSS Align
CSS Pseudo-class
CSS Pseudo-element
CSS Navigation Bar
CSS Image Gallery
CSS Image Opacity

CSS Outline
An outline is a line that is drawn around elements (outside the borders) to make the element "stand out".
However, the outline property is different from the border property.
The outline is not a part of an element's dimensions; the element's total width and height is not affected by the width of
the outline.

CSS Image Sprites


CSS Media Types
CSS Attr Selectors

CSS3 Tutorial
CSS3 Introduction
CSS3 Borders
CSS3 Backgrounds
CSS3 Gradients
CSS3 Text Effects
CSS3 Fonts
CSS3 2D Transforms
CSS3 3D Transforms
CSS3 Transitions
CSS3 Animations
CSS3 Multiple Columns
CSS3 User Interface
CSS Summary

All CSS Outline Properties

CSS Examples

Property

Description

Values

CSS Examples

outline

Sets all the outline properties in one declaration

outline-color
outline-style
outline-width
inherit

outline-color

Sets the color of an outline

color_name
hex_number
rgb_number
invert
inherit

outline-style

Sets the style of an outline

none
dotted
dashed
solid
double
groove
ridge
inset
outset

CSS Quiz
CSS Certificate

CSS References
CSS Reference
CSS Selectors
CSS Reference Aural
CSS Web Safe Fonts
CSS Units
CSS Colors
CSS Color Values
CSS Color Names
CSS Color HEX

file:///E:/Document/w3schools-2014/css/css_outline.html

WEB RESOURC

Web Statistics

Web Validation

1/2

2/14/14

CSS Outline Properties


inherit
outline-width

Sets the width of an outline

thin
medium
thick
length
inherit

Previous

Next Chapter

Top 10 Tutorials

Top 10 References

Top 10 Examples

Web Certificates

Color Picker

colorpicker

HTML Tutorial
HTML5 Tutorial
C SS Tutorial
C SS3 Tutorial
JavaScript Tutorial
jQuery Tutorial
SQL Tutorial
PHP Tutorial
ASP.NET Tutorial
XML Tutorial

HTML/HTML5 Reference
C SS 1,2,3 Reference
C SS 3 Browser Support
JavaScript
HTML DOM
XML DOM
PHP Reference
jQuery Reference
ASP.NET Reference
HTML C olors

HTML Examples
C SS Examples
XML Examples
JavaScript Examples
HTML DOM Examples
jQuery Examples
XML DOM Examples
AJAX Examples
ASP Examples
SVG Examples

R EPO R T ER R O R

HO ME |

TO P

HTML C ertificate
HTML5 C ertificate
C SS C ertificate
JavaScript C ertificate
jQuery C ertificate
XML C ertificate
ASP C ertificate
PHP C ertificate

PR INT

FO R UM

ABO UT

ADVER TISE W ITH US

W3Schools is optimized for learning, testing, and training. Examples might be simplified to improve reading and basic understanding. Tutorials, references, and examples
are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use,
cookie and privacy policy. C opyright 1999-2014 by Refsnes Data. All Rights Reserved.

file:///E:/Document/w3schools-2014/css/css_outline.html

2/2

Вам также может понравиться