Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

HTML Table with horizontal & vertical scrolling

I blog very frequently and sometimes the posts contain code snippets. The site template sometimes limits the available real-estate and this can cause certain issues. If there is long text in one line, then they are stripped and will not be visible.

The solution to this is to:

If you chose the second option of a scrollable Html Table, below is a sample code-snippet that you can use to achieve this. The below snippet provides horizontal scrolling only. You can modify the same to achieve vertical scrolling

This is how it looks in different browsers:

image

Share the post

HTML Table with horizontal & vertical scrolling

×

Subscribe to Msdn Blogs | Get The Latest Information, Insights, Announcements, And News From Microsoft Experts And Developers In The Msdn Blogs.

Get updates delivered right to your inbox!

Thank you for your subscription

×