Outline Shorthand

The outline shorthand property sets all the outline properties in one declaration, like this:

outline: red solid 3px;
Which would give you this text in a span element

The properties that can be set, are (in order):

If one of the values above are missing, e.g. "outline:solid #ff0000;", the default value for the missing property will be inserted, if any.

Back button Table of Contents Next button