CSS: border-right-width
Описание
Устанавливает толщину границы справа от элемента.
Синтаксис
border-right-width: thin | medium | thick | значение
Аргументы
Три переменные — thin (2 пиксела), medium (4 пиксела) и thick (6 пикселов) задают толщину границы справа. Для более точного значения, толщину можно указывать в пикселах или других единицах.
Пример
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>border-right-width</title>
<style type="text/css">
DIV.line {
border-right-color: #c38e63; /* Цвет линии справа */
border-right-style: dashed; /* Стиль линии */
border-right-width: 2px; /* Толщина линии */
border-left-color: #c38e63; /* Цвет линии слева */
border-left-style: dashed; /* Стиль линии */
border-left-width: 2px; /* Толщина линии */
padding: 0 10px; /* Расстояние между линией и текстом */
}
</style>
</head>
<body>
<div class="line">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diem nonummy nibh euismod tincidunt ut lacreet dolore magna aliguam erat volutpat. Ut wisis enim ad minim veniam, quis nostrud exerci tution ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
</div>
</body>
</html>
Объектная модель
[window.]document.getElementById("elementID").style.borderRightWidth Вернуться назад
|