/* In your CSS code: */pre{display:inline;}
<!-- And then, in your HTML code: -->
<pre> This text comes after four spaces.</pre><span> Continue the line with other element without braking </span>
display: inline-block;min-width: 10em; // ...for example, depending on the uniform width to be achieved for the items [in a list], which is a common scenario where tab is often needed.
p { background-color: #FFEEEE; margin: 0; padding: 0.5em 0; }
<p style="white-space: pre-wrap; tab-size: 4">	← One tab		← two tabs			← three tabs				← four tabs.</p><p style="white-space: pre-wrap; tab-size: 4"> ← This one is one character.</p><p style="white-space: pre-wrap; tab-size: 42">	← This one has come out too far.</p><p style="white-space: pre-wrap; tab-size: 8">	← Say! what a lot of tabs there are.</p>