text-justify
text-align: justify 적용 시 정렬 방식을 제어합니다. tjw는 서양 텍스트에, tjc는 CJK 텍스트에 적합합니다.
클래스 목록
| <tr> <th class="tal py12px px16px bg18181B bb2pxsolid27272A cA1A1AA fw600 ttu fs12px ls0-05em">클래스 | CSS | 설명 |
|---|---|---|
tja | text-justify: auto | 브라우저 자동 결정 (기본값) |
tjn | text-justify: none | 정렬 비활성화 |
tjw | text-justify: inter-word | 단어 사이 간격으로 정렬 |
tjc | text-justify: inter-character | 글자 사이 간격으로 정렬 |
사용 예시
taj(text-align: justify)와 함께 사용합니다.
<!-- Western text: word gap justification -->
<p class="taj tjw">
This is a long paragraph of English text that will be
justified by adjusting the spacing between words.
</p>
<!-- CJK text: character gap justification -->
<p class="taj tjc">
This is justified text where the gaps between characters
are adjusted for alignment.
</p>언제 뭘 쓸까?
| <tr> <th class="tal py12px px16px bg18181B bb2pxsolid27272A cA1A1AA fw600 ttu fs12px ls0-05em">텍스트 종류 | 추천 | 이유 |
|---|---|---|
| 영어, 유럽어 | tjw | 단어 사이 간격으로 정렬 |
| 한중일 (CJK) | tjc | 글자 사이 간격으로 정렬 |
| 혼합 텍스트 | tja | 브라우저가 자동 판단 |