CSS

[text] CSS - text-orientation 속성 - 블락방향 수직모드에서 문자방향 지정 (= 텍스트방향 지정 = text-orientation속성 = 텍스트오리엔테이션속성)

목차
  1. text-orientation 예제 - 텍스트 방향 지정
  2. text-orientation 정의
  3. text-orientation 구문

 

text-orientation 예제 - 텍스트 방향 지정

 

<style>

div{

  writing-mode: vertical-lr;

  border: 1px solid black;

  display: inline-block;

  height: 300px;

  width: 100px;

  margin: 5px;

}

div.a {

  text-orientation: mixed;

  background:yellow;

}


div.b {

  text-orientation: upright;

  background:pink;

}

div.c {

  text-orientation: sideways;

  background:tomato;

}

</style>


<div class="a">

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

  <p>HTML CSS JS PHP SQL 강의</p>

</div>


<div class="b">

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

  <p>HTML CSS JS PHP SQL 강의</p>

</div>

 

<div class="c">

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

  <p>HTML CSS JS PHP SQL 강의</p>

</div>

 

결과보기

 

text-orientation 정의

 

writing-mode 속성값이 vertical로 지정된 경우, 문자 방향 지정.

 


 

1.

writing-mode 속성값이 'vertical'로 지정된 경우에만 작동.

 

2.

  • 기본값: mixed
  • 상속여부: O
  • 애니가능: X
  • CSS버전: CSS3
  • JS구문: object.style.textOrientation="upright";

 

3.

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

 

4. MDN text-orientation 예제보기

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

 

 

text-orientation 구문

 

selector {text-orientation: mixed|upright|sideways|sideways-right|use-glyph-orientation|initial|inherit;}

 


[속성값]

 

mixed

영문은 시계방향으로 90도 회전하고, 한글은 그대로 유지. (기본값)

 

upright

위쪽 향함. (회전 X)

 

sideways

영문/한글 모두 시계방향(=오른쪽)으로 90도 회전.

 

sideways-right

sideways와 같으나, 호환성 차원에서 속성명 유지.

 

use-glyph-orientation

SVG 요소에 사용하기 위해 텍스트는 더 이상 사용되지 않는 SVG 속성인 glyph-orientation-vertical 및 glyph-orientation-horizontal을 상속

 

initial

이 속성의 기본값 사용.

 

inherit

부모요소의 속성값 상속.

 


방문 감사합니다. (즐겨찾기 등록: Ctrl + D)

분류 제목
text CSS - text-overflow 속성 ★ - 영역 이탈 글자 처리 (= text-overflow속성 = …
text CSS - word-break 속성 ★ - 한중일 외의 언어 (단어기준/글자기준) 줄바꿈규칙 지정 (= 줄…
text CSS - word-wrap 속성 ★ - 단어줄바꿈 위해 긴단어쪼개기 (= 긴단어깨기 = 긴단어나누기 = w…
text CSS - text-fill-color 속성 (비표준) - 텍스트글자색 (= 글자전경색 =text-fill-…
text CSS - text-decoration-line 속성 - 텍스트라인위치종류 (= text-decoration…
text CSS - text-decoration-style 속성 - 텍스트라인모양 (굵은선, 파선, 점선, 물결선 등…
text CSS - text-decoration-color 속성 - 텍스트라인색깔 (= 텍스트데커레이션컬러속성, IE…
text CSS - writing-mode 속성 - 텍스트 방향 가로/세로 제어. (= 글쓰기 방향 = 쓰기 모드 제…
text CSS - overflow-wrap 속성 - 줄바꿈 위해 단어 쪼개기 (= overflow-wrap속성 / …
text CSS - text-underline-offset 속성 - 텍스트와 밑줄라인과의 간격 지정 (= text-u…
text CSS - text-decoration-thickness 속성 - 텍스트라인 두께 지정 (= text-dec…
text CSS - text-emphasis-color 속성 - 텍스트 강조마크의 색상 지정 (= text-empha…
text CSS - text-emphasis-position 속성 - 텍스트 강조마크 위치 지정 (= text-emp…
text CSS - text-emphasis-style 속성 - 텍스트 강조마크 모양 지정 (= text-emphas…
text CSS - text-orientation 속성 - 블락방향 수직모드에서 문자방향 지정 (= 텍스트방향 지정 …
2/3
목록
  • 채팅방
  • 필독
1. 채팅창 헤드에서 접속자 확인 2. 닉네임 클릭해 1:1 채팅 가능 3. 닉네임 클릭해 귓속말 가능 4. 닉네임 클릭해 호출하기 가능 5. 우하단 클릭해 환경 설정 가능 6. 의뢰글 작성 후 의뢰 상담 가능 7. 질문글 작성 후 질문 상담 가능 8. 채팅방에 개인정보 입력 금지 9. 채팅방에 광고 욕설 비방 금지
 홈  PC버전 로그인 일본어
웹디자인언어
서버관리언어
고급코딩언어
그누보드 1
제작의뢰
Q&A
커뮤니티 1
웹유틸
회원센터
홈짱 PC버전 로그인