CSS border-right-width property

Examples

Setting the right border width:

p
{
border-style:solid;
border-right-width:15px;
}


Attribute definitions and instructions

border-right-width property sets the width of an element's right border.

Note Always declaration border-style property before the border-right-width property.Element only after obtaining the border, in order to change the width of the border.

Defaults: medium
Inherited: no
version: CSS1
JavaScript syntax: object .style.borderRightWidth = "thick"


Browser Support

Figures in the table represent the first browser to support the version number of the property.

属性
border-right-width 1.0 4.0 1.0 1.0 3.5

Property Values

value description
thin Fine definition of the right of the box.
medium Defaults. Defines the medium right border.
thick Definition of rough to the right of the box.
length It allows you to customize the width of the right border.
inherit Provisions should inherit the border width from the parent element.


related articles

CSS tutorial: CSS Border

CSS Reference: border-right property