• 회원가입
  • 로그인
  • 구글아이디로 로그인

[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>

 

결과보기


방문 감사합니다. (즐겨찾기 등록: Ctrl + D)

분류 제목
border CSS - border-radius 속성 ★ - 테두리둥글기 지정 (= border-radius속성 = 보더…
border CSS - border-top-left-radius 속성 - 테두리상단왼쪽둥글기 지정 (= 보더탑레프트레이디…
border CSS - border-top-right-radius 속성 - 테두리상단우측둥글기 지정 (= 보더탑라이트레이…
border CSS - border-bottom-right-radius 속성 - 테두리 하단 오른쪽 모서리 둥글게 (= …
border CSS - border-bottom-left-radius 속성 - 테두리하단왼쪽모서리둥글게 (= border…
border CSS - border-image 속성 - 테두리이미지 (= border-image속성 = 보더이미지속성, …
border CSS - border-image-source 속성 - 테두리 이미지 주소 (= border-image-so…
border CSS - border-image-slice 속성 - 테두리이미지자르기 (IE11)
border CSS - border-image-width 속성 - 테두리 이미지 너비 (= border-image-wid…
border CSS - border-image-outset 속성 - 테두리 경계 넘는 이미지 양. (= 보더이미지아웃셋속…
border CSS - border-image-repeat 속성 - 테두리 이미지 반복할지 늘릴지 선택 (= 보더이미지리…
border CSS - border-block 속성 - 블락방향 테두리 스타일 일괄 지정 (= border-block속성…
border CSS - border-block-color 속성 - 블락방향 테두리 색상 일괄 지정 (= border-bl…
border CSS - border-block-end 속성 - 블락방향 끝테두리 스타일 일괄 지정 (= border-bl…
border CSS - border-block-end-color 속성 - 블락방향 끝테두리 색상 지정 (= border-…
border CSS - border-block-end-style 속성 - 블락방향 끝테두리 모양 지정 (= border-…
border CSS - border-block-end-width 속성 - 블락방향 끝테두리 너비(=두께) 지정 (= bo…
border CSS - border-block-start 속성 - 블락방향 시작테두리 스타일 일괄 지정 (= border…
border CSS - border-block-start-color 속성 -
border CSS - border-block-start-style 속성 - 블락방향 시작테두리 모양 지정 (= bord…
2/3
목록
찾아주셔서 감사합니다. Since 2012