The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

<pre> kills layout in IE

On http://realistanew.com I wrote an entry that uses <pre> to show some code. For some reason this breaks in IE6. I lose my blue background color and the whole site becomes left aligned. I tried using a <code> tag and doing white-space: pre; but I got the same effect. Anyone know why this might be?

No I don't. Because funnily enough on IE5.0 it looks fine and I haven't got IE6 installed here.

'pre' can be very tricky since you'll never be able to predict how wide it will turn out. Why don't you start with putting a width on the 'pre' (and overflow:auto). It might also help to have that code indented with spaces rather then with tabs. (so it doesn't take up so much space in the first place).