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

[css] CSS - hyphenate-character 속성 - 하이픈 줄바꿈 시, 라인 끝 하이픈 모양 지정 (= hyphenate-characte속성 = 하이퍼네이트캐릭터

목차
  1. hyphenate-character 예제 - 하이픈 줄바꿈 시, 라인 끝 하이픈 모양 지정
  2. hyphenate-character 정의
  3. hyphenate-character 구문

 

hyphenate-character 예제 - 하이픈 줄바꿈 시, 라인 끝 하이픈 모양 지정

 

<style>

div { 

  width: 110px;

  border: 1px solid gray;

  hypens: auto;

  padding:10px;

}

 

div.a {hyphenate-character: auto;}

div.b {hyphenate-character: "=";}

div.c {hyphenate-character: "/";}

div.d {hyphenate-character: "_";}

</style>


<div class="a">A extra&shy;ordinary Homzzang.com</div>

<div class="b">A extra&shy;ordinary Homzzang.com</div>

<div class="c">A extra&shy;ordinary Homzzang.com</div>

<div class="d">A extra&shy;ordinary Homzzang.com</div>

 

 

hyphenate-character 정의

 

긴 단어가 하이픈 줄바꿈 시, 라인 끝 하이픈 모양 지정.

 


 

1.

  • 줄바꿈 없을 시 하이픈 삽입 X
  • hypens 속성값이 manual 이거나 auto일 때 작동.

 

2.

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

 

3.

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

 

4. MDN 예제보기

https://developer.mozilla.org/en-US/docs/Web/CSS/hyphenate-character

 

 

hyphenate-character 구문

 

selector {hyphenate-character: auto|string|initial|inherit;}

 


[속성값]

 

auto

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

 

string

하이픈 줄바꿈 시, 사용자가 지정한 문자 사용.

  • 라인 줄바꿈 시 라인 끝에 사용자가 (&hyphens; 또는, &shy;)로 지정된 자리에 들어감.

 

initial

이 속성의 기본값 사용.

 

inherit

부모요소의 속성값 상속.

 

 


분류 제목
box CSS - margin-inline 속성 - 인라인방향 양쪽 끝 바깥 여백 주기 (= margin-inlin…
scroll CSS - scroll-margin-right 속성 -
border CSS - border-block-start-width 속성 -
border CSS - border-inline-style 속성 -
css CSS - rotate 속성 - 요소 회전 (= rotate속성 = 로테이트속성)
scroll CSS - scroll-margin-inline-end 속성 -
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 속성 -
css CSS - offset-path 속성 -
scroll CSS - scroll-margin-block-end 속성 -
border CSS - border-inline-start-width 속성 -
border CSS - border-block-end-width 속성 - 블락방향 끝테두리 너비(=두께) 지정 (= bo…
css CSS - hyphens 속성 - 긴 텍스트 단어에서 하이픈 표시 방법 지정 (= hyphens속성 = 하이…
css CSS - place-self 속성 - 그리드셀 내 개별 아이템 (수직/수평) 정렬 (= place-self…
scroll CSS - scroll-snap-align 속성 -
scroll CSS - scroll-snap-stop 속성 -
font CSS - font-kerning 속성 - 문자 모양 고려해, 문자 사이 간격 지정 (= font-kerni…
6/27
목록
찾아주셔서 감사합니다. Since 2012