/

HTML / CSS / JavaScript Tutorial

CSS Property: outline

[this page | pdf | back links]

The CSS (CSS2) outline property is a shorthand property combining (up to) 3 of the outline properties.

 

Valid property values (other than inherit and initial) are defined by the elements of the shorthand. Shorthand elements (in the order in which they appear):

 

-        outline-color

-        outline-style

-        outline-width

 

Default Value:

invert none medium

JavaScript syntax:

e.g. object.style.outline="2px solid red"

Inherited:

No

Animatable:

See individual properties

 


NAVIGATION LINKS
Contents | Prev | Next | CSS Properties


Desktop view | Switch to Mobile