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?
while the accepted answer is indeed correct, if you want the text to wrap you should use:
white-space: pre-wrap;