aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/css/border-right-width/index.html
blob: 60c3a4e564a6ce4a0c1ed174a8c11481d3ca60b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
---
title: border-right-width
slug: Web/CSS/border-right-width
tags:
  - CSS
  - CSS Borders
  - CSS Property
  - Reference
  - 'recipe:css-property'
translation_of: Web/CSS/border-right-width
---
<div>{{CSSRef}}</div>

<p><a href="/ko/docs/Web/CSS">CSS</a> <strong><code>border-right-width</code></strong> 속성은 요소의 오른쪽 테두리 너비를 지정합니다.</p>

<div>{{EmbedInteractiveExample("pages/css/border-right-width.html")}}</div>



<h2 id="Syntax" name="Syntax">구문</h2>

<pre class="brush:css no-line-numbers notranslate">/* 키워드 값*/
border-right-width: thin;
border-right-width: medium;
border-right-width: thick;

/* &lt;length&gt; 값 */
border-right-width: 10em;
border-right-width: 3vmax;
border-right-width: 6px;

/* 전역 값 */
border-right-width: inherit;
border-right-width: initial;
border-right-width: unset;
</pre>

<h3 id="값"></h3>

<dl>
 <dt><code>&lt;line-width&gt;</code></dt>
 <dd>테두리의 너비입니다.0 이상의 {{cssxref("&lt;length&gt;")}} 또는 키워드를 사용할 수 있습니다. 키워드는 다음 세 가지 중 하나여야 합니다.
 <table class="standard-table">
  <tbody>
   <tr>
    <td><code>thin</code></td>
    <td>
     <div style="margin: 0.5em; width: 3em; height: 3em; border-right-style: solid; border-right-width: thin; background-color: palegreen;"></div>
    </td>
    <td>얇은 테두리</td>
   </tr>
   <tr>
    <td><code>medium</code></td>
    <td>
     <div style="margin: 0.5em; width: 3em; height: 3em; border-right-style: solid; border-right-width: medium; background-color: palegreen;"></div>
    </td>
    <td>중간 테두리</td>
   </tr>
   <tr>
    <td><code>thick</code></td>
    <td>
     <div style="margin: 0.5em; width: 3em; height: 3em; border-right-style: solid; border-right-width: thick; background-color: palegreen;"></div>
    </td>
    <td>굵은 테두리</td>
   </tr>
  </tbody>
 </table>

 <div class="note">
 <p><strong>참고:</strong> 각 키워드의 굵기를 정의한 명세는 없기 때문에 결과는 구현별로 상이할 수 있습니다. 다만 굵기는 언제나 <code>thin ≤ medium ≤ thick</code>이고, 하나의 문서 내에서 동일합니다.</p>
 </div>
 </dd>
</dl>

<h2 id="형식_정의">형식 정의</h2>

<p>{{cssinfo}}</p>

<h2 id="형식_구문">형식 구문</h2>

<pre class="syntaxbox notranslate">{{csssyntax}}</pre>

<h2 id="예제">예제</h2>

<h3 id="테두리의_너비_비교">테두리의 너비 비교</h3>

<h4 id="HTML">HTML</h4>

<pre class="brush: html notranslate">&lt;div&gt;Element 1&lt;/div&gt;
&lt;div&gt;Element 2&lt;/div&gt;</pre>

<h4 id="CSS">CSS</h4>

<pre class="brush: css notranslate">div {
  border: 1px solid red;
  margin: 1em 0;
}

div:nth-child(1) {
  border-right-width: thick;
}
div:nth-child(2) {
  border-right-width: 2em;
}</pre>

<h4 id="결과">결과</h4>

<p>{{EmbedLiveSample('테두리의_너비_비교', '100%')}}</p>

<h2 id="명세">명세</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('CSS3 Backgrounds', '#the-border-width', 'border-right-width')}}</td>
   <td>{{Spec2('CSS3 Backgrounds')}}</td>
   <td>No significant change.</td>
  </tr>
  <tr>
   <td>{{SpecName('CSS2.1', 'box.html#border-width-properties', 'border-right-width')}}</td>
   <td>{{Spec2('CSS2.1')}}</td>
   <td>No significant change.</td>
  </tr>
  <tr>
   <td>{{SpecName('CSS1', '#border-left-width', 'border-right-width')}}</td>
   <td>{{Spec2('CSS1')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="브라우저_호환성">브라우저 호환성</h2>



<p>{{Compat("css.properties.border-right-width")}}</p>

<h2 id="같이_보기">같이 보기</h2>

<ul>
 <li>테두리 너비 관련 CSS 속성: {{Cssxref("border-bottom-width")}}, {{Cssxref("border-left-width")}}, {{Cssxref("border-top-width")}}, and {{Cssxref("border-width")}}.</li>
 <li>오른쪽 테두리 관련 CSS 속성: {{Cssxref("border")}}, {{Cssxref("border-right")}}, {{Cssxref("border-right-style")}}, and {{Cssxref("border-right-color")}}.</li>
</ul>