خاصية لون يمين الحدود في CSS
مثال
عيّن لونًا للحد الأيمن:
div {border-right-color: coral;}
المزيد من الأمثلة "جربها بنفسك" أدناه.
التعريف والاستخدام
تحدد الخاصية لون border-right-color
الحد الأيمن للعنصر.
ملاحظة: قم دائمًا بتعريف نمط الحدود أو
خاصية نمط يمين الحدود
قبل border-right-color
الخاصية. يجب أن يكون للعنصر حد قبل أن تتمكن من تغيير اللون.
القيمة الافتراضية: | أسود |
---|---|
وارث: | رقم |
متحرك: | نعم. اقرأ عن animatable |
الإصدار: | CSS1 |
بناء جملة JavaScript: | الكائن .style.borderRightColor = "أزرق" |
دعم المتصفح
تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم الخاصية بالكامل.
Property | |||||
---|---|---|---|---|---|
border-right-color | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
بنية CSS
border-right-color: color|transparent|initial|inherit;
قيم الملكية
Value | Description | Play it |
---|---|---|
color | Specifies the color of the right border. Look at CSS Color Values for a complete list of possible color values. Default color is the current color of the element | |
transparent | Specifies that the border color should be transparent | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
مزيد من الأمثلة
مثال
عيّن لونًا للحد الأيمن بقيمة HEX:
div {border-right-color: #92a8d1;}
مثال
عيّن لونًا للحد الأيمن بقيمة RGB:
div {border-right-color: rgb(201, 76, 76);}
مثال
عيّن لونًا للحد الأيمن بقيمة RGBA:
div {border-right-color: rgba(201, 76, 76, 0.3);}
مثال
عيّن لونًا للحد الأيمن بقيمة HSL:
div {border-right-color: hsl(89, 43%, 51%);}
مثال
عيّن لونًا للحد الأيمن بقيمة HSLA:
div {border-right-color: hsla(89, 43%, 51%, 0.3);}
مثال
تعيين حد أيمن شفاف:
div {border-right-color: transparent;}
الصفحات ذات الصلة
دروس CSS: CSS Border
مرجع CSS: خاصية border-right
مرجع DOM HTML: خاصية borderRightColor