Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS border-right definition

Syntax

border-right: <border-right-width> || <borderstyle> || <color>

Description

The border-right property is a shorthand property that specifies the border-top-width and/or border-top-style and/or border-top-color properties of an element.

Values

Values Definition
border-width border-style border-color Sets all three properties for the right border.

See also

border-style, border-color, border-width

 

Example

[Try this example yourself]
<style type="text/css">
.border1

  border-right: thick dotted #FFFF00
}
.border2

  border-right: double #FF0000
}
</style>
<div class="border1">
  Border 1 -->
</div>
<div class="border2">
  Border 2 -->
</div>

Output

Border 1 -->
Border 2 -->
  • Comments

No comments added.