<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>text-align: justify and preserved tabs</title>
<link rel='match' href='reference/text-align-justify-tabs-001-ref.html'>
<link rel='author' title='Jonathan Kew' href='mailto:[email protected]'>
<link rel='help' href='https://www.w3.org/TR/css-text-4/#text-align-property'>
<meta name="assert" content="If an element’s white space is not collapsible ...
ensure that tab stops continue to line up as required by the white space processing rules.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
div {
font: 25px Ahem, monospace;
width: 30ch;
white-space: pre-wrap;
tab-size: 8;
border: 1px solid gray;
padding: 2px;
margin: 2px;
}
.test {
text-align: justify;
}
</style>
</head>
<body>
<p>The layout in the two boxes should be the same:</p>
<div>a b c	tab 1	tab 2	jklmnop</div>
<div class=test>a b c	tab 1	tab 2	jklmnop</div>
</body>