Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS outline-color definition

Syntax

outline-color: <color>;

Description

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

Values

Value Description

Transparent

Default value. Makes the background color transparent.

RGB color value

Example: rgb(0,255,0)

Hexadecimal color keyword

Example: #FF0000

CSS color keyword

Example: red

See Also

outline, outline-style, outline-width

Example

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

Output

Some text.
  • Comments

No comments added.