Text with scrollbar

bvdm23
bvdm23 used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
<div style="margin: 1em; padding: 1em; border: solid black 1px; overflow: auto; height: 10em;">
Your content here
</div>

(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

Commented:
If you saved it as a html page you could use an iframe.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial