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

[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

부모요소의 속성값 상속.

 

 


분류 제목
image CSS - image-rendering 속성 - 크기 조정 가능 이미지의 렌더링 방식 지정 (= image-…
css CSS - inset 속성 -
css CSS - inset-block 속성 -
css CSS - inset-block-end 속성 -
css CSS - inset-block-start 속성 -
css CSS - inset-inline 속성 -
css CSS - inset-inline-end 속성 -
css CSS - inset-inline-start 속성 -
css CSS - isolation 속성 - 요소가 새 스택(stack: 쌓음) 콘텐츠를 생성해야 하는지 여부 지정…
grid CSS - justify-items 속성(C) - 인라인축 부분단위별 그리드 아이템 일괄 정렬 (= just…
grid CSS - justify-self 속성 -
box CSS - margin-block 속성 -
box CSS - margin-block-end 속성 -
box CSS - margin-block-start 속성 -
box CSS - margin-inline 속성 - 인라인방향 양쪽 끝 바깥 여백 주기 (= margin-inlin…
box CSS - margin-inline-end 속성 -
box CSS - margin-inline-start 속성 -
css CSS - mask-image 속성 -
css CSS - mask-mode 속성 -
css CSS - mask-origin 속성 -
21/25
목록
찾아주셔서 감사합니다. Since 2012