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

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

 

결과보기



분류 제목
css CSS - appearance 속성 - 요소자체구성요소숨기기 (= 요소내장구성요소제거 = appearance…
position CSS - left 속성 ★ - 왼쪽기준 (= left속성 = 좌측기준 = 레프트속성, 상속 X)
background CSS - background-color 속성 ★ - 배경색깔(=배경색상=배경컬러 = background-c…
selector CSS - :hover 가상선택자 ★ - 요소에 마우스커서위치시 효과 (= :hover선택자 = 허버선택자,…
position CSS - right 속성 ★ - 오른쪽기준(= 우측기준) 위치 지정 (= right속성 = 라이트속성) ※…
css CSS - 이미지반전 (= 이미지좌우반전 = 이미지좌우대칭변환)
position CSS - z-index 속성 ★ - 요소층수지정 (= 요소상하지정 = 요소상하결정 = 위아래지정 = z-…
box CSS - height 속성 ★ - 높이 (= 세로길이 = height속성 = 하이트속성) (※ vh, vw…
box CSS - width 속성 ★ - 너비 (= 가로길이 = width속성 = 위드스속성, 상속X)
image CSS - filter 속성 - 이미지필터효과 (= filter속성 = 필터속성) ※ 흑백이미지만들기 ※ 이…
text CSS - color 속성 ★ - 글자색깔 (=글자색상=글자색깔=글자컬러 = 텍스트색깔 = 컬러속성 = co…
position CSS - top 속성 ★ - 기준상단 (= 위기준 상단거리 = top속성 = 탑속성/톱속성)
position CSS - float 속성 ★★★ - 요소나란히 (= 요소한줄로 = 요소가로로 = 요소옆으로 = float속…
table CSS - border-collapse 속성★ - 테두리겹침설정 (= 테두리중첩설정 = 테두리이중방지 = b…
selector CSS - :first-child 가상선택자 - 그부모요소의 첫번째자식요소 (= 퍼스트차일드선택자, IE7)
selector CSS - ID선택자, class선택자 + CSS우선순위 ★★★ (= 아이디선택자, 클래스선택자, CSS명시…
selector CSS - :not() 가상선택자 - (특정요소/특정선택자) 아닌 모든요소선택 (= not선택자 = 낫선택자…
font CSS - font-size 속성 ★ - 글자크기 (= 글씨체크기= 글씨크기 = 서체크기= 글씨크기 = …
font CSS - font-style 속성 - 글자기울기 (= 이텔릭체 여부 = 이탤릭 글씨체 = 글자 기울려쓰기 … 1
intro CSS - 스타일 적용 방법 3가지 ★★★ - (인라인스타일 / 내부스타일 / 외부스타일) CSS적용순서 +…
26/27
목록
찾아주셔서 감사합니다. Since 2012