--- title: border-bottom-color slug: Web/CSS/border-bottom-color tags: - CSS - CSS Borders - CSS Property - Reference translation_of: Web/CSS/border-bottom-color ---
border-bottom-color
CSS 속성은 요소의 아래쪽 테두리 색상을 지정합니다. {{cssxref("border-color")}} 또는 {{cssxref("border-bottom")}} 단축 속성으로도 지정할 수 있습니다.
/* <color> 값 */ border-bottom-color: red; border-bottom-color: #ffbb00; border-bottom-color: rgb(255, 0, 0); border-bottom-color: hsla(100%, 50%, 25%, 0.75); border-bottom-color: currentColor; border-bottom-color: transparent; /* 전역 값 */ border-bottom-color: inherit; border-bottom-color: initial; border-bottom-color: unset;
border-bottom-color
속성은 하나의 값을 사용해 지정합니다.
<div class="mybox"> <p>This is a box with a border around it. Note which side of the box is <span class="redtext">red</span>.</p> </div>
.mybox { border: solid 0.3em gold; border-bottom-color: red; width: auto; } .redtext { color: red; }
{{EmbedLiveSample('테두리를_가진_간단한_상자')}}
Specification | Status | Comment |
---|---|---|
{{SpecName('CSS3 Backgrounds', '#border-bottom-color', 'border-bottom-color')}} | {{Spec2('CSS3 Backgrounds')}} | No significant changes, though the transparent keyword, now included in {{cssxref("<color>")}} which has been extended, has been formally removed. |
{{SpecName('CSS2.1', 'box.html#propdef-border-bottom-color', 'border-bottom-color')}} | {{Spec2('CSS2.1')}} | Initial definition |
{{cssinfo}}
{{Compat("css.properties.border-bottom-color")}}