• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 241
  • Last Modified:

Text with scrollbar

Hello all,

I need to load some HTML code I get from a TXT file into an HTML page.
The problem is that this is a long text and that it shoul be reduced to 7
or 8 lines. So I got the idea of loading it into a textarea but the problem
is that this textarea doesn't resolve the HTML code.

So it don't see the HTML formatted layout that I would like to see.
Does anyone know how to solve this, it should be a solution that is valid
for IE and Netscape.
1 Solution
<div style="margin: 1em; padding: 1em; border: solid black 1px; overflow: auto; height: 10em;">
Your content here

(External style sheet preferred, http://dorward.me.uk/www/css/#tutorials might be of use)
you also can save the .TXT as a .html file
If you saved it as a html page you could use an iframe.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now