หากต้องการกำหนดระยะห่างระหว่างคำ ให้ใช้คุณสมบัติการเว้นวรรคคำ ค่าคุณสมบัติมีดังนี้ −
word-spacing: normal|length|initial|inherit;
ตัวอย่าง
เรามาดูตัวอย่างกัน −
<!DOCTYPE html>
<html>
<head>
<style>
p.demo1 {
word-spacing: normal;
}
p.demo2 {
word-spacing: 10px;
}
</style>
</head>
<body>
<h1>Demo Heading</h1>
<h2>Heading2</h2>
<p class="demo1">This is demo text.</p>
<h2>Heading2</h2>
<p class="demo2">This is demo text.</p>
</body>
</html> ผลลัพธ์

ตัวอย่าง
เรามาดูตัวอย่างอื่นกัน −
<!DOCTYPE html>
<html>
<head>
<style>
p.demo1 {
word-spacing: 3cm;
}
p.demo2 {
word-spacing: 40px;
}
</style>
</head>
<body>
<h1>Demo Heading</h1>
<h2>Heading2</h2>
<p class="demo1">This is demo text.</p>
<h2>Heading2</h2>
<p class="demo2">This is demo text.</p>
</body>
</html> ผลลัพธ์
