<div class="container">
<p>The following code snippets are placed inside a <code><pre></code> element so that the white spaces are preserved and the effect of increasing/decreasing the tab size is visible.</p>
<div class="snippet snippet-1">
<pre>
.tab-size {
tab-size: 4;
}
no tabs
one tab
two tabs
</pre>
</div>
<div class="snippet snippet-2">
<pre>
.tab-size {
tab-size: 8;
}
no tabs
one tab
two tabs
</pre>
</div>
<div class="snippet snippet-3">
<pre>
.tab-size {
tab-size: 12;
}
no tabs
one tab
two tabs
</pre>
</div>
</div>
body {
background-color: #F5F5F5;
color: #555;
font-size: 1.3em;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.container {
max-width: 700px;
margin: 50px auto;
}
.snippet {
background-color: #0099cc;
color: white;
max-width: 300px;
margin-bottom: 10px;
padding: 10px;
}
.snippet-1 pre {
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
}
.snippet-2 pre {
-moz-tab-size: 8;
-o-tab-size: 8;
tab-size: 8;
}
.snippet-3 pre {
-moz-tab-size: 12;
-o-tab-size: 12;
tab-size: 12;
}