Is it possible to to change a tag (or ) to preformat its contents like a tag would using only CSS?
) to preformat its contents like a tag would using only CSS?
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; }