|  About Me  |  Blogs  |  Photos  |  Publications  |  Resume  | 

Let <pre> blocks scroll

By default, if the content of the pre block is too long it overflows and clashes with the neighbouring content. Luckily this could be fixed with the overflow attribute in CSS. If we set it to auto it would show a scroll bar when necessary. Here’s a demo:

style="overflow:visible" // default
style="overflow:auto" // scrolls

Leave a Reply

You must be logged in to post a comment.