CSS border-right 속성
예시
다른 요소의 오른쪽 테두리 스타일을 설정합니다.
h1 {
border-right: 5px solid red;
}
h2 {
border-right: 4px dotted blue;
}
div {
border-right: double;
}
정의 및 사용
속성은 ( border-right
다음 순서로)에 대한 약식 속성입니다.
border-right-color를 생략하면 적용된 색상이 텍스트의 색상이 됩니다.
기본값: | 중간 색상 없음 |
---|---|
상속: | 아니요 |
애니메이션 가능: | 예, 개별 속성을 참조하십시오 . 애니메이션 가능 에 대해 읽기 |
버전: | CSS1 |
자바스크립트 구문: | object .style.borderRight="5px 파란색 점선" |
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
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 테두리
HTML DOM 참조: borderRight 속성