CSS border-right-color هاجيستي

Definition and Usage

border-right-color sets the color of the element's right border.

Only pure colors can be defined, and the border can only appear when the border style is not none or hidden.

التعليقات:Always declare the border-style property before the border-color property. The element must have a border before you change its color.

See also:

CSS Tutorial:Hukunci kudu

CSS Reference Manual:border-right Property

HTML DOM Reference Manual:borderRightColor Property

Example

Set the border-right color:

p
  {
  border-style:solid;
  border-right-color:#ff0000;
  }

Try it yourself

CSS Syntax

border-right-color: color|transparent|initial|inherit;

Property Value

Value Description
color_name Specifies the border color as a color name (e.g., red).
hex_number Specifies the border color as a hexadecimal value (e.g., #ff0000).
rgb_number Specifies the border color as an rgb code (e.g., rgb(255,0,0)).
transparent Default Value. The border color is transparent.
inherit Specifies that the border color should be inherited from the parent element.

Technical Details

Default Value: not specified
Inheritance: no
Version: CSS1
JavaScript Syntax: object.style.borderRightColor="blue"

مزيد من الأمثلة

تعيين لون الحافة اليمنى
هذا المثال يوضح كيفية تعيين لون الحافة اليمنى.

دعم المتصفحات

الرقم في الجدول يشير إلى إصدار المتصفح الأول الذي يدعم هذه الصفة بشكل كامل.

Chrome IE / Edge Firefox Safari Opera
1.0 4.0 1.0 1.0 3.5

التعليقات:لا يدعم متصفح Internet Explorer 6 (وإصداراته الأقدم) قيمة "transparent" للصفة.

التعليقات:متصفح Internet Explorer 7 وأقدم إصداراته لا يدعم القيمة "inherit". يحتاج Internet Explorer 8 إلى !DOCTYPE. يدعم Internet Explorer 9 "inherit".