Handle overflow in CSS

If you noticed some pages in howforge.com, they are containing

 tag to show code in monotype format. The side-effect of this tag is that all contents inside pre tag will never be wrapped if lines too long like usual cases. In other words, your layout may be extended the width for so long. Fortunately, I found a solution for this problem and just fixed in howforge.com. You could see the result of the solution in previous post. To fix this problem, just modify your CSS as follow.

pre { /* overflow */ overflow: auto; }

Wow!

Technorati Tags: , , , , , ,

Post new comment