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

[text] CSS - text-emphasis-position 속성 - 텍스트 강조마크 위치 지정 (= text-emphasis-position속성 = 텍스트엠퍼시스포지션속성)

목차
  1. text-emphasis-position 예제 - 텍스트 강조마크 위치
  2. text-emphasis-position 정의
  3. text-emphasis-position 구문

 

text-emphasis-position 예제 - 텍스트 강조마크 위치

 

<style>   

h3.hz1 {

  text-emphasis: double-circle red;

  text-emphasis-position: over;

}


h3.hz2 {

  text-emphasis: triangle blue;

  text-emphasis-position: under;  

}


h3.hz3 {

  writing-mode: vertical-rl;

  text-emphasis: triangle blue;

  text-emphasis-position: under right;  

}


h3.hz4 {

  writing-mode: vertical-rl;

  text-emphasis: triangle blue;

  text-emphasis-position: under left;  

}

</style>


<h3 class="hz1">홈짱닷컴 Homzzang.com</h3>

<h3 class="hz2">홈짱닷컴 Homzzang.com</h3>

<h3 class="hz3">홈짱닷컴 Homzzang.com</h3>

<h3 class="hz4">홈짱닷컴 Homzzang.com</h3>


결과보기

 

text-emphasis-position 정의

 

텍스트 강조마크 위치 지정. (over/under/left/right)

 


 

1.

  • writing-mode 속성 사용해 (가로쓰기/세로쓰기) 여부 결정.
  • (수평모드/수직모드) 둘 다 적어도 되고, 하나만 적어도 됨.
  • 둘 다 적을 땐 띄어쓰기로 구분하고, 적는 순서는 상관없음.
  • 하나만 적을 시 안 적힌 부분은 해당 모드 기본값이 적용됨.

 

 

2. cf.

 

3.

  • 기본값: over right
  • 상속여부: O
  • 애니타입: discrete (불연속 방식)
  • CSS버전: CSS3
  • JS구문: object.style.textEmphasisPosition="under";

 

4.

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

 

5. MDN text-emphasis-position 예제보기

https://developer.mozilla.org/en-US/docs/Web/CSS/text-emphasis-position

 

 

text-emphasis-position 구문

 

selector {text-emphasis-position: over|under|left|right|initial|inherit;}

 


[속성값]

 

over

(수평모드에서) 텍스트 위에 배치

 

under

(수평모드에서) 텍스트 아래에 배치

 

left

(수직모드에서) 텍스트 왼쪽에 배치

 

right

(수직모드에서) 텍스트 오른쪽에 배치

 

initial

이 속성의 기본값 사용.

 

inherit

부모요소의 속성값 상속.



PS. 여러가지 사용 예제

 

/* 기본값 */

  • text-emphasis-position: over right;


/* 키워드값 */

 

수평모드 수직모드

  • text-emphasis-position: over left;
  • text-emphasis-position: under right;
  • text-emphasis-position: under left;

 

수직모드 수평모드

  • text-emphasis-position: left over;
  • text-emphasis-position: right under;
  • text-emphasis-position: left under;


/* 전역값 사용 시 */

  • text-emphasis-position: inherit;
  • text-emphasis-position: initial;
  • text-emphasis-position: revert;
  • text-emphasis-position: revert-layer;
  • text-emphasis-position: unset;

 



분류 제목
css CSS - tab-size 속성 - 탭크기(=탭너비) 지정 (= tab-size속성 = 탭사이즈속성)
counter CSS - counter() 함수 / counters() 함수 - 카운터 값을 요소에 추가 (= counte…
css CSS - clip-path 속성 - 보일 범위 지정해 자르기 (= clip-path속성 = 클립패스속성) …
grid CSS - grid-template-columns 속성(C) ★ - 그리드 열 개수와 너비 지정 (= gri…
text CSS - text-emphasis-color 속성 - 텍스트 강조마크의 색상 지정 (= text-empha…
font CSS - font-size-adjust 속성 - 소문자 x 높이 기준으로, 대체 글꼴 크기 재조정 (= f…
font CSS - font-stretch 속성 - 폰트 너비 조정 (= font-stretch속성 = 폰트스트레치속…
css CSS - widows 속성 - 페이지나 열의 상단에 남겨야 하는 최소 줄 수 지정 (= widows속성 =…
background CSS - background-position-y 속성 - 배경이미지 y축위치(=수직위치) 설정 (= bac…
text CSS - text-emphasis-position 속성 - 텍스트 강조마크 위치 지정 (= text-emp…
grid CSS - grid-template-areas 속성(C) - 그리드 아이템의 컬럼 영역 지정 (= grid-…
text CSS - text-decoration-thickness 속성 - 텍스트라인 두께 지정 (= text-dec…
counter CSS - counter-increment 속성 - 카운터 값 증가 (= counter-increment속성…
css CSS - 지그재그 톱날모양 물결무늬
box CSS - aspect-ratio 속성 - 요소의 종횡비율(= 가로세로비율) 지정 (= aspect-rati…
grid CSS - grid-template-rows 속성(C) - 그리드 행 개수와 높이 지정 (= grid-tem…
intro CSS - @import 구문 - 지정 외부스타일시트파일을 현재 스타일시트에 삽입/가져오기 (= @impor…
text CSS - text-emphasis-style 속성 - 텍스트 강조마크 모양 지정 (= text-emphas…
counter CSS - counter-reset 속성 - 카운터변수 생성/초기값재설정 (= counter-reset속성 …
text CSS - text-underline-offset 속성 - 텍스트와 밑줄라인과의 간격 지정 (= text-u…
10/27
목록
찾아주셔서 감사합니다. Since 2012