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

[text] CSS - text-decoration-thickness 속성 - 텍스트라인 두께 지정 (= text-decoration-thickness속성 = 텍스트데커레이션씩니스속성) ※ 라인두께/라인굵기

목차
  1. text-decoration-thickness 예제 - 텍스트라인 두께 지정
  2. text-decoration-thickness 정의
  3. text-decoration-thickness 구문

 

text-decoration-thickness 예제 - 텍스트라인 두께 지정

 

<style>

h1 {

  text-decoration: underline;

  text-decoration-thickness: auto;  

}


h2 {

  text-decoration: underline;

  text-decoration-thickness: 5px;  

}


h3 {

  text-decoration: underline;

  text-decoration-thickness: 50%;    

}


/* 단축속성 사용 경우 */

h4 {

  text-decoration: underline solid red 50%;    

}

</style>


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

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

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

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

 

결과보기

 

text-decoration-thickness 정의

 

텍스트라인 두께 지정.

 


 

1. cf.

 

2.

  • 기본값: auto
  • 상속여부: X
  • 애니가능: X
  • CSS버전: CSS4
  • JS구문: object.style.textDecorationThickness="5px";

 

3.

IE 제외한 주요 최신 브라우저 모두 지원.

 

4. MDN text-decoration-thickness 예제보기

https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-thickness

 

 

text-decoration-thickness 구문

 

selector {text-decoration-thickness: auto|from-font|length|percentage|initial|inherit;}

 


[속성값]

 

auto

브라우저 자동 지정. (기본값)

 

from-font

폰트에 내장된 두께 정보 사용. 없으면, auto 사용.

 

length

길이 단위로 두께 지정. (예: 5px)

 

percentage

텍스트 크기의  백분율로 지정. (예: 50%)

 

initial

이 속성의 기본값 사용.

 

inherit

부모요소의 속성값 상속.

 

 


분류 제목
border CSS - border-inline-width 속성 -
border CSS - border-block-start-width 속성 -
scroll CSS - scroll-margin-right 속성 -
css CSS - rotate 속성 - 요소 회전 (= rotate속성 = 로테이트속성)
scroll CSS - scroll-margin-inline-end 속성 -
border CSS - border-inline-style 속성 -
scroll CSS - scroll-padding-left 속성 -
scroll CSS - scroll-margin-block-start 속성 -
border CSS - border-inline-color 속성 -
css CSS - break-before 속성 - 지정요소 앞에서 (페이지중단/컬럼중단/영역중단) 발생 여부 지정 …
border CSS - border-start-start-radius 속성 -
scroll CSS - scroll-margin-block-end 속성 -
border CSS - border-block-end-width 속성 - 블락방향 끝테두리 너비(=두께) 지정 (= bo…
css CSS - offset-path 속성 -
css CSS - place-self 속성 - 그리드셀 내 개별 아이템 (수직/수평) 정렬 (= place-self…
css CSS - hyphens 속성 - 긴 텍스트 단어에서 하이픈 표시 방법 지정 (= hyphens속성 = 하이…
border CSS - border-inline-start-width 속성 -
scroll CSS - scroll-snap-stop 속성 -
scroll CSS - scroll-snap-align 속성 -
font CSS - font-kerning 속성 - 문자 모양 고려해, 문자 사이 간격 지정 (= font-kerni…
6/27
목록
찾아주셔서 감사합니다. Since 2012