Solved

Text with scrollbar

Posted on 2003-10-22
3
180 Views
Last Modified: 2010-04-09
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.
0
Comment
Question by:bvdm23
3 Comments
 
LVL 17

Accepted Solution

by:
dorward earned 100 total points
Comment Utility
<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)
0
 
LVL 1

Expert Comment

by:paStiSSet
Comment Utility
you also can save the .TXT as a .html file
0
 

Expert Comment

by:DaveSW
Comment Utility
If you saved it as a html page you could use an iframe.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now