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

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

 

결과보기



분류 제목
border CSS - border-bottom-left-radius 속성 - 테두리하단왼쪽모서리둥글게 (= border…
func CSS - attr() 함수 - 선택요소의 속성값 반환. (= attr함수 = 어트르함수) ※ 속성값얻기
selector CSS - :last-of-type 가상선택자 - 지정타입 마지막자식요소 (순서선택자,타입선택자, IE9)
flex CSS - flex-shrink 속성(I) ★ - 동일컨테이너 안 나머지 플렉스아이템에 비해 얼마나 줄어들지…
selector CSS - .class1.class2 클래스선택자 ★★★ - 두 클래스가 (모두/함게/둘다/동시) 정의된 요…
selector CSS - :indeterminate 가상선택자 - 불확정요소 선택 (= :indeterminate선택자 =…
border CSS - border-bottom-style 속성 - 테두리하단스타일 (= 보더바텀스타일) (상속 X)
flex CSS - flex-direction 속성(C) ★★ - 기본축 방향 결정. (= flex-direction…
selector CSS - :link 가상선택자 - 미방문링크 (= 링크선택자)
selector CSS - :nth-last-child(n) 가상선택자 ★★★ - (그 부모의) 마지막n번째 자식요소 (= …
selector CSS - :required 가상선택자 - 필수입력요소 (= required속성있는요소, IE10)
transform CSS - transform-style 속성 - 중첩요소를 3D공간에서 표시 방법 (= transform-s…
intro CSS - 브라우저 접두어 (= vendor prefix = 벤더 프리픽스)
css CSS - currentcolor 키워드 - 현재 글자색 속성값을 그대로 사용 (= 커런트컬러 속성값)
animation CSS - animation-play-state 속성 - 애니재생상태 (= 애니작동상태설정 = 움직임 재생/…
animation CSS - animation-name 속성 - 키프레임명 (= 키프레임이름 = 애니이름 = 애니명 = 애니메…
animation CSS - animation-fill-mode 속성 - 애니미작동스타일 (= 움직임 작동안할때 스타일 = 애…
column CSS - column-width 속성 - 컬럼 너비 지정 (= column-width속성 = 컬럼위드스속성…
css CSS - 반응형 마름모 갤러리 (Responsible Rhomb gallery on grids + clip…
background CSS - background-origin 속성 - 배경이미지 좌표시작점 (= 백그라운드오리진 속성)
16/27
목록
찾아주셔서 감사합니다. Since 2012