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; }
2.1m questions
2.1m answers
60 comments
57.0k users