# Text 정렬

# writing-mode

writing-mode는 텍스트를 가로, 세로중 어떤 방향으로 놓을지 정하는 css property이다.

# Syntax

/* keyword values */
writing-mode: horizontal-tb;
writing-mode: vertical-lr;
writing-mode: vertical-rl;

# Demo

  • horizontal-tb

image-20200729140652219

  • vertical-lr

image-20200729140742668

  • vertical-rl

image-20200729140757563

# white-space

white-space는 요소가 공백 문자를 처리하는 법을 지정하는 css property이다.

# syntax

/* Keyword values */
white-space: normal;
white-space: nowrap;
white-space: pre;
white-space: pre-wrap;
white-space: pre-line;
white-space: break-spaces;

# Demo

  • white-space: normal;

image-20200729141128803

  • white-space: nowrap;

image-20200729141141987

  • white-space: pre;

image-20200729141154323

  • white-space: pre-wrap;

image-20200729141205483

  • white-space: pre-line;

image-20200729141215507

# text-orientation

text-orientation은 텍스트 글자들의 방향을 정하는 css property이다.

# syntax

/* Keyword values */
text-orientation: mixed;
text-orientation: upright;
text-orientation: sideways-right;
text-orientation: sideways;
text-orientation: use-glyph-orientation;

# Demo

  • writing-mode: vertical-rl; text-orientation: mixed;

image-20200729141612755

  • writing-mode: vertical-rl; text-orientation: upright;

image-20200729141631028