--- title: border-bottom slug: Web/CSS/border-bottom tags: - CSS - CSS Borders - CSS Property - Reference - 테두리 translation_of: Web/CSS/border-bottom --- <div>{{CSSRef}}</div> <p><span class="seoSummary"><strong><code>border-bottom</code></strong> <a href="/ko/docs/Web/CSS">CSS</a> <a href="/ko/docs/Web/CSS/Shorthand_properties">단축 속성</a>은 요소의 아래쪽 테두리를 설정합니다.</span> {{cssxref("border-bottom-width")}}, {{cssxref("border-bottom-style")}}, {{cssxref("border-bottom-color")}}의 값을 지정합니다.</p> <div>{{EmbedInteractiveExample("pages/css/border-bottom.html")}}</div> <p>다른 단축 속성과 마찬가지로, <code>border-bottom</code>는 자신이 포함한 모든 값을 지정하며 사용자가 명시하지 않은 속성도 기본값으로 설정합니다. 즉, 아래 두 코드는 사실 동일합니다.</p> <pre class="brush: css">border-bottom-style: dotted; border-bottom: thick green; </pre> <pre class="brush: css">border-bottom-style: dotted; border-bottom: none thick green; </pre> <p>따라서 <code>border-bottom</code>보다 먼저 지정한 {{cssxref("border-bottom-style")}}의 값은 무시됩니다. {{cssxref("border-bottom-style")}}의 기본값은 <code>none</code>이므로, <code>border-style</code>을 명시하지 않으면 테두리를 만들지 않습니다.</p> <h2 id="구문">구문</h2> <pre class="brush: css no-line-numbers">border-bottom: 1px; border-bottom: 2px dotted; border-bottom: medium dashed green; </pre> <p><code>border-bottom</code>은 한 개에서 세 개의 값을 사용해 지정할 수 있고, 순서는 상관하지 않습니다.</p> <h3 id="값">값</h3> <dl> <dt><code><br-width></code></dt> <dd>{{cssxref("border-bottom-width")}}.</dd> <dt><code><br-style></code></dt> <dd>{{cssxref("border-bottom-style")}}.</dd> <dt>{{cssxref("<color>")}}</dt> <dd>{{cssxref("border-bottom-color")}}.</dd> </dl> <h3 id="형식_구문">형식 구문</h3> {{csssyntax}} <h2 id="예제">예제</h2> <pre class="brush: html"><div> 아래쪽 테두리를 가진 요소입니다. </div></pre> <pre class="brush: css">div { border-bottom: 4px dashed blue; background-color: gold; height: 100px; width: 100px; font-weight: bold; text-align: center; } </pre> <p>{{EmbedLiveSample('예제')}}</p> <h2 id="Specifications" name="Specifications">명세</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', '#border-bottom', 'border-bottom')}}</td> <td>{{Spec2('CSS3 Backgrounds')}}</td> <td>No direct changes, though the modification of values for the {{cssxref("border-bottom-color")}} do apply to it.</td> </tr> <tr> <td>{{SpecName('CSS2.1', 'box.html#propdef-border-bottom', 'border-bottom')}}</td> <td>{{Spec2('CSS2.1')}}</td> <td>No significant changes.</td> </tr> <tr> <td>{{SpecName('CSS1', '#border-bottom', 'border-bottom')}}</td> <td>{{Spec2('CSS1')}}</td> <td>Initial definition</td> </tr> </tbody> </table> <div>{{cssinfo}}</div> <h2 id="Browser_compatibility" name="Browser_compatibility">브라우저 호환성</h2> <div class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</div> <p>{{Compat("css.properties.border-bottom")}}</p>