Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS outline-style definition

Syntax

outline-style: <style>;

Description

The outline-style property sets the style 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

Value Description

none

No border.

dotted

Dotted border.

dashed

Dashed border.

solid

Default solid border.

double

Double border.

groove

Groove border.

ridge

Ridge border.

inset

Inset border.

outset

Outset border.

See Also

Outline, outline-color, outline-width

Example

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

Output

Some text.
  • Comments

No comments added.