Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS outline definition

Browser support
IEFFOpSaf

Type:

Syntax

outline: <width> <style> <color>;

Description

The outline property is a shorthand property to define an entire outline consisting of outlind-width, outline-style and outline-color.

An outline is very much like a border. The differences between the two is that the outline doesn't affect other parts of the document, and it is only possible to change the entire outline.

See Also

outline-color, outline-style, outline-width

Example

[Try this example yourself]
<style type="text/css">
.outline
{
  outline:5px inset blue;
}
</style>
<div class="outline">
Some text.
</div>

Output

Some text.
  • Comments

No comments added.