HTML/CSS – Best practice for preserving white space on certain elements?

I would use the same technique, but inside a data class wrapper where it is needed:

.data a, .data span, .data tr, .data td { white-space: pre; }

HTML:

<div class="data">
....

</div>

Leave a Comment