Forum Moderators: not2easy
I am trying to use the <pre> tag to put some formatted code into a web page. It does this, yes, but the tag is utterly destroying my layout. WIthout the <pre> tag, the code is a mess but the layout is fine. As soon as I put in the <pre> tags, my content area expands to fill the screen (width-wise), my sidebar disappears down the page, it's a disaster.
Any idea why <pre> might mess up my layout?
Any idea what I can do about it?
I thought it WAS because <pre> retaines line breaks, but it's not the <pre> tag content that's stretching everything. It's actually a normal <p> element that is defining the end width.
What about options for wrapping? Any idea what's available in the specs for that?