CSS word-spacing 속성은 요소의 단어 사이의 간격을 지정하는 데 사용됩니다.
구문
CSS word-spacing 속성의 구문은 다음과 같습니다 -
Selector {
word-spacing: /*value*/
} 예시
다음 예제는 CSS 단어 간격 속성을 보여줍니다 -
<!DOCTYPE html>
<html>
<head>
<style>
div {
display: flex;
float: left;
padding: 10px;
background-color: salmon;
}
div > div {
word-spacing: 30px;
width: 340px;
height: 140px;
border-radius: 5%;
box-shadow: inset 0 0 15px blueviolet;
}
</style>
</head>
<body>
<div>
<div>
Magento is an open source E-commerce software, created by Varien Inc., which is useful for
online business. It has a flexible modular architecture and is scalable with many control
options that is helpful for users.</div>
</div>
</body>
</html> 출력
이것은 다음 출력을 제공합니다 -

예시
<!DOCTYPE html>
<html>
<head>
<style>
q {
display: flex;
padding: 10px;
word-spacing: 6em;
background-color: orange;
font-size: 1.2em;
}
</style>
</head>
<body>
<h2>What is Java?</h2>
According to Java's official documentation,
<hr>
<q cite="https://www.java.com/en/download/faq/whatis_java.xml">Java is a programming language and computing platform first released by Sun Microsystems in 1995.</q>
</body>
</html> 출력
이것은 다음 출력을 제공합니다 -
