--- title: word-spacing slug: Web/CSS/word-spacing tags: - CSS - CSS Property - CSS Text - Reference - 'recipe:css-property' translation_of: Web/CSS/word-spacing --- <div>{{CSSRef}}</div> <p><a href="/ko/docs/Web/CSS">CSS</a> <strong><code>word-spacing</code></strong> 속성은 단어와 단어 사이, 태그와 태그 사이의 거리를 설정합니다.</p> <div>{{EmbedInteractiveExample("pages/css/word-spacing.html")}}</div> <div class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> and send us a pull request.</div> <h2 id="구문">구문</h2> <pre class="brush:css no-line-numbers notranslate">/* 키워드 값 */ word-spacing: normal; /* <length> 값 */ word-spacing: 3px; word-spacing: 0.3em; /* <percentage> 값 */ word-spacing: 50%; word-spacing: 200%; /* 전역 값 */ word-spacing: inherit; word-spacing: initial; word-spacing: unset; </pre> <h3 id="값">값</h3> <dl> <dt><code>normal</code></dt> <dd>현재 글씨체와 브라우저가 결정한 일반적인 단어 간격을 사용합니다.</dd> <dt>{{cssxref("length")}}</dt> <dd>지정한 길이를 기본 단어 간격에 더합니다.</dd> <dt>{{cssxref("percentage")}}</dt> <dd>영향 받는 문자 최대 폭의 백분율만큼을 기본 단어 간격에 더합니다.</dd> </dl> <h2 id="예제">예제</h2> <h3 id="HTML">HTML</h3> <pre class="brush: html notranslate"><div id="mozdiv1">다양한 단어...</div> <div id="mozdiv2">...더 많은 단어</div></pre> <h3 id="CSS">CSS</h3> <pre class="brush: css notranslate">#mozdiv1 { word-spacing: 15px; } #mozdiv2 { word-spacing: 5em; } </pre> <p>{{ EmbedLiveSample('예제') }}</p> <h2 id="접근성_고려사항">접근성 고려사항</h2> <p>큰 절댓값의 <code>word-spacing</code>을 적용한 문장은 거의 읽기 힘들어집니다. 큰 양의 값을 적용하면 단어의 사이가 너무나도 멀어져서 문장처럼 보이지 않습니다. 반면 지나친 음의 값을 적용하면 단어끼리 서로 겹쳐서 어느 단어의 시작과 끝을 알아차리지 못하게 됩니다.</p> <p>글씨체마다 문자 너비가 다르므로, 가독성을 확보하는 수준의 <code>word-spacing</code> 역시 상황에 맞춰 결정해야 합니다. 모든 글씨체에서 가독성을 유지하는 단 하나의 값은 존재하지 않습니다.</p> <ul> <li><a href="/en-US/docs/Web/Accessibility/Understanding_WCAG/Perceivable#Guideline_1.4_Make_it_easier_for_users_to_see_and_hear_content_including_separating_foreground_from_background">MDN Understanding WCAG, Guideline 1.4 explanations</a></li> <li><a href="https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-visual-presentation.html" rel="noopener">Understanding Success Criterion 1.4.8 | W3C Understanding WCAG 2.0</a></li> </ul> <h2 id="형식_정의">형식 정의</h2> <p>{{CSSInfo}}</p> <h2 id="형식_구문">형식 구문</h2> {{CSSSyntax}} <h2 id="명세">명세</h2> <table class="standard-table"> <thead> <tr> <th scope="col">Specification</th> <th scope="col">Status</th> <th scope="col">Comment</th> </tr> </thead> <tbody> <tr> <td>{{SpecName('CSS3 Text', '#propdef-word-spacing', 'word-spacing')}}</td> <td>{{Spec2('CSS3 Text')}}</td> <td>Replaces the previous values with a <code><spacing-limit></code> value that defines the same thing, plus the <code><percentage></code> value. Allows up to three values describing the optimum, minimum, and maximum value.</td> </tr> <tr> <td>{{SpecName('CSS2.1', 'text.html#propdef-word-spacing', 'word-spacing')}}</td> <td>{{Spec2('CSS2.1')}}</td> <td>No change.</td> </tr> <tr> <td>{{SpecName('CSS1', '#word-spacing', 'word-spacing')}}</td> <td>{{Spec2('CSS1')}}</td> <td>Initial definition.</td> </tr> </tbody> </table> <h2 id="브라우저_호환성">브라우저 호환성</h2> <p>{{Compat("css.properties.word-spacing")}}</p> <h2 id="같이_보기">같이 보기</h2> <ul> <li>{{cssxref("letter-spacing")}}</li> </ul>