Solved

Text with scrollbar

Posted on 2003-10-22
3
218 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Mobile apps - web/native or hybrid? 1 120
What cart is this? 2 54
Increase image taller on inner pages 2 49
send html form with multipe immages as buttons 2 37
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
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)

737 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