Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS outline-width definition

Browser support
IEFFOpSaf

Type:

Syntax

outline-width: <width>;

Description

The outline-width property sets the width of an outline. 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.

Values

Values Definition

thin

Sets a thin border.

medium

Default. Sets a thin border.

thick

Sets a thick border.
length<unit> For example: 5px. The unit can be any of px (pixels), mm (millimeters), cm(centimeters), in (inches), pt (points), pc (picas), em (the element's font height) or ex (the element's x-height). 

See Also

outline, outline-style, outline-color

Example

[Try this example yourself]
<style type="text/css">
.outline
{
  outline-style: solid;
  outline-width: 15px;
}
</style>
<div class="outline">
Some text.
</div>

Output

Some text.
  • Comments

No comments added.