CSS border-right-width Свойство
Пример
Задайте ширину для правой границы:
div {border-right-width: thin;}
Подробнее примеры ниже.
Определение и использование
Свойство border-right-width
задает ширину правой границы элемента.
Примечание: Перед свойством всегда объявляйте свойство border-style или right border-right-width
. Элемент должен иметь границы, прежде чем можно изменить ширину.
Значение по умолчанию: | medium |
---|---|
Inherited: | no |
Animatable: | yes. Читайте о animatable |
Version: | CSS1 |
Синтаксис JavaScript: | object.style.borderRightWidth="5px" |
Поддержка браузера
Номера в таблице указывают первую версию браузера, которая полностью поддерживает свойство.
Свойство | |||||
---|---|---|---|---|---|
border-right-width | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Синтаксис CSS
border-right-width: medium|thin|thick|length|initial|inherit;
Значения свойств
Значение | Описание | |
---|---|---|
medium | Задает среднюю правую границу. Это значение по умолчанию | |
thin | Задает тонкую правую границу | |
thick | Задает толщину правой границы | |
length | Позволяет определить толщину правой границы. Читать о единицах длины | |
initial | Присваивает этому свойству значение по умолчанию. (Читайте о initial) | |
inherit | Наследует это свойство из родительского элемента. (Читайте о inherit) |
Другие примеры
Пример
Установите ширину правой границы в среднее:
div {border-right-width: medium;}
Пример
Задайте ширину правой границы толщиной:
div {border-right-width: thick;}
Пример
Установите ширину правой границы в 1px:
div {border-right-width: 1px;}
Пример
Установите ширину правой границы в 15пкс:
div {border-right-width: 15px;}
Похожие страницы
CSS Справочник: CSS Border
CSS Справка: border-right Свойство
HTML DOM Справочник: borderRightWidth Свойство