Solved

Text with scrollbar

Posted on 2003-10-22
3
202 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
ID: 9599084
<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
ID: 9599881
you also can save the .TXT as a .html file
0
 

Expert Comment

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

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Safari On Gmail only html 12 54
CSS Logo Problem. 2 20
Joomla 2.5 shopping cart 7 23
Can't get js include to work in html file 8 10
Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

785 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