This is a read-only archive!

Line wrapping pre tags

For a long time my blog layout has been a bit screwy; it had a hard minimum width for the central column of the layout, which caused an annoying need for horizontal scrolling after you make your browser window small enough horizontally. Nothing in my CSS was causing this as far as I could tell.

Turns out it was the PRE tags that I put my code snippits in. They weren't line-wrapping. I found a page with some CSS to make PRE tags line-wrap and now my site looks better in narrow windows in Firefox, Opera and Konqueror.

Turns out it doesn't work in IE7. Of course. But if you're using IE7, my site looking odd is the least of your problems. Also I didn't test it in IE6, and I don't really care what it looks like in IE6. IE6 is already dead and buried, in my eyes.

February 10, 2008 @ 9:38 AM PST
Cateogory: Programming