خاصية CSS border-right
مثال
عيّن نمط الحد الأيمن للعناصر المختلفة:
h1 {
border-right: 5px solid red;
}
h2 {
border-right: 4px dotted blue;
}
div {
border-right: double;
}
التعريف والاستخدام
الخاصية هي border-right
خاصية مختصرة لـ (بالترتيب التالي):
إذا تم حذف لون يمين الحد ، فسيكون اللون المطبق هو لون النص.
القيمة الافتراضية: | متوسط بلا لون |
---|---|
وارث: | رقم |
متحرك: | نعم ، انظر الخصائص الفردية . اقرأ عن animatable |
الإصدار: | CSS1 |
بناء جملة JavaScript: | الكائن .style.borderRight = "5 بكسل أزرق منقط" |
دعم المتصفح
تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم الخاصية بالكامل.
Property | |||||
---|---|---|---|---|---|
border-right | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
بنية CSS
border-right: border-width border-style border-color|initial|inherit;
قيم الملكية
Value | Description |
---|---|
border-right-width | Required. Specifies the width of the right border. Default value is "medium" |
border-right-style | Required. Specifies the style of the right border. Default value is "none" |
border-right-color | Optional. Specifies the color of the right border. Default value is the color of the text |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
الصفحات ذات الصلة
دروس CSS: CSS Border
مرجع DOM HTML: خاصية borderRight