CSS

[border] CSS - border-bottom-width 속성 - 테두리하단너비 (= 테두리하단두께 = border-bottom-width속성 = 보더바덤위드스속성) (상속X)

목차

  1. border-bottom-width 예제 - 테두리 하단 두께 thin 경우
  2. border-bottom-width 정의
  3. border-bottom-width 구문
  4. border-bottom-width 예제 - medium 경우
  5. border-bottom-width 예제 - thick 경우
  6. border-bottom-width 예제 - 1px 경우
  7. border-bottom-width 예제 - 10px 경우

 

border-bottom-width 예제 - 테두리 하단 두께 thin 경우

 

<style>

h1 {

  border-bottom-style: solid;

  border-bottom-width: thin;

}


div {

  border-style: solid;

  border-bottom-width: thin;

}

</style>


<h1>홈짱닷컴 Homzzang.com</h1>

<div>홈짱닷컴 Homzzang.com</div>

 

결과보기

※ 주의: border-style 속성 정의 필수.

 

border-bottom-width 정의

 

테두리 하단 두께 지정.

 


 

1.

border-bottom-width 속성 지정 전 반드시 border-style 또는 border-bottom-style 속성을 먼저 정의 필요. (∵ 테두리 두께 변경하려면, 테두리 모양 필요.)

 

2.

  • 기본값: medium
  • 상속여부: X
  • 애니효과: O
  • CSS버전: CSS1
  • JS구문: object.style.borderBottomWidth="5px"

 

3.

모든 브라우저 지원.

 

4. MDN border-bottom-width 예제 보기

https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-width

 

 

border-bottom-width 구문

 

selector {border-bottom-width: medium|thin|thick|length|initial|inherit;}

 


[속성값]

thin
얇은 두께 (1px)
 
midium
중간 두께 (3px)
 
thick
굵은 두께 (5px)
 
length
px, cm, % 등 길이 단위값 (예) 5px 
 
initial
이 속성의 기본값으로 자동설정. 
 
inherit
부모 요소로부터 속성값 상속

※ 주의

  • none : 이런 속성값은 존재 X
  • 테두리 없애려면, 숫자 0 사용. (예) border-bottom-width:0;

  

 

border-bottom-width 예제 - medium 경우

 

<style>

h1 {

  border-bottom-style: solid;

  border-bottom-width: medium;

}


div {

  border-style: solid;

  border-bottom-width: medium;

}

</style>


<h1>홈짱닷컴 Homzzang.com</h1>

<div>그누보드/영카트 강의</div>

 

결과보기

 

border-bottom-width 예제 - thick 경우

 

<style>

h1 {

  border-bottom-style: solid;

  border-bottom-width: thick;

}


div {

  border-style: solid;

  border-bottom-width: thick;

}

</style>


<h1>홈짱닷컴 Homzzang.com</h1>

<div>그누보드/영카트 강의</div>

 

결과보기

 

border-bottom-width 예제 - 1px 경우

 

<style>

h1 {

  border-bottom-style: solid;

  border-bottom-width: 1px;

}


div {

  border-style: solid;

  border-bottom-width: 1px;

}

</style>


<h1>홈짱닷컴 Homzzang.com</h1>

<div>그누보드/영카트 강의</div>

 

결과보기

 

border-bottom-width 예제 - 10px 경우

 

<style>

h1 {

  border-bottom-style: solid;

  border-bottom-width: 10px;

}


div {

  border-style: solid;

  border-bottom-width: 10px;

}

</style>


<h1>홈짱닷컴 Homzzang.com</h1>

<div>그누보드/영카트 강의</div>

 

결과보기



분류 제목
grid CSS - grid-template-rows 속성(C) - 그리드 행 개수와 높이 지정 (= grid-tem…
intro CSS - @import 구문 - 지정 외부스타일시트파일을 현재 스타일시트에 삽입/가져오기 (= @impor…
text CSS - text-emphasis-style 속성 - 텍스트 강조마크 모양 지정 (= text-emphas…
counter CSS - counter-reset 속성 - 카운터변수 생성/초기값재설정 (= counter-reset속성 …
text CSS - text-underline-offset 속성 - 텍스트와 밑줄라인과의 간격 지정 (= text-u…
css CSS - all 속성 - 해당요소와 그 부모요소의 모든 속성 일괄 지정 (= all속성 = 올속성)
text CSS - text-orientation 속성 - 블락방향 수직모드에서 문자방향 지정 (= 텍스트방향 지정 …
counter CSS - counter (카운터: 자동으로 번호 매기기) 시스템 작동원리 + 관련 속성 종류
background CSS - mix-blend-mode 속성 = 해당요소의 부모요소 배경색과의 '결합/혼합' 방법 지정 (= …
css CSS - translate 속성 - 2D/3D 상 요소 위치 좌표 변경 지정 (= translate속성 =…
css CSS - hanging-punctuation 속성 - 문장부호 위치 지정 (= hanging-punctua…
css CSS - user-select 속성 - 사용자가 요소의 텍스트를 선택 가능한지 여부 지정 (= user-s…
grid CSS - gap 속성(C) - (행/열) 사이의 간격 지정 (= gap속성 =갭속성) ※ (그리드/플렉스/…
text CSS - text-underline-position 속성 - 텍스트 언더라인 위치 지정 (= text-un…
grid CSS - Grid Item - 그리드 아이템
14/35
목록
 홈  PC버전 로그인 일본어
그누앞단언어
그누뒷단언어
그외코딩언어
그누보드
제작의뢰
Q&A
커뮤니티 1
웹유틸
회원센터
홈짱닷컴 PC버전 로그인