Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Reference: justified first line followed by a start aligned line</title>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
.container {
font: 20px/1 Ahem;
width: 200px;
}
.justified-word-spacing {
display: inline-block;
width: 40px;
}
</style>
<div class="container">
<div>XX<span class="justified-word-spacing"></span>XX<span class="justified-word-spacing"></span>XX</div>
<div>XX<span class="justified-word-spacing"></span>XX<span class="justified-word-spacing"></span>XX</div>
<div>XX XX</div>
<div>XXX</div>
<div>XX XX</div>
</div>