Is it possible to to change a <span> tag (or <div>) to preformat its contents like a <pre> tag would using only CSS?
<span>
<div>
<pre>
Look at the W3C CSS2.1 Default Style Sheet or the CSS2.2 Working Draft. Copy all the settings for PRE and put them into your own class.
pre { display: block; unicode-bidi: embed; font-family: monospace; white-space: pre; }
1.4m articles
1.4m replys
5 comments
57.0k users