Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS border-right-color definition

Browser supportInfo
IEFFOpSafVersionDepr.

Type:

Syntax

border-right-color: <color>;

Description

This property specifies the color of the right border.

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

 

Example

[Try this example yourself]
<style type="text/css">
.color1
{
  border-style: solid;
  border-right-color: #FF0000
}
.color2

  border-style: solid;
  border-right-color: #0000FF
}
</style>

<div class="color1">
  Color 1
</div>
<div class="color2">
  Color 2
</div>

Output

Color 1
Color 2
  • Comments

No comments added.