Scrolling layer with vertical bar

mtech
mtech used Ask the Experts™
on
I need to have a layer on my webpage that will display some text. The layer needs to be 180 pixels wide and 200 pixels high. As the text will more than fill this area it needs to scroll by use of a vertical (only) scroll bar. This needs to work in both IE and NS and be as backward compatible as possible. I know there are many pitfalls in this area so I am looking for the easiest solution around.
thanks
mtech
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
<div style="width: 180px; height: 200px; overflow: auto;">
la la la
</div>
in IE you can make sure only a vertical bar appears by using
overflow-y:auto;

You would still have to use overflow:auto; afterwards for netsacpe 6+

Author

Commented:
The problem with overflow:auto is that it will give both horizontal and vertical scroll bars. I need to avoid that if possible.
mtech
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Top Expert 2013
Commented:
mtech,

What you want to do cannot be done in Netscrap.  It can only be made to work in IE because of support for the non-standard attributes overflow-x and overflow-y.

If the limits of the technology are not satisfactory, then I suggest to you put up a lot more points, and perhaps an expert will be willing to invest the time helping yu develop a custom control.  Or, you might search some of free script sites where you might find something you can adapt.  Everything I have seen like this is unreliable and not fit to be on a serious page.

Cd&

Author

Commented:
Many thanks Cd& for the plain speaking.

I have now found a Java applet that will do what I want (just about) although it takes the text content for the layer from a text file so limits the formatting available.
mtech
Top Expert 2013

Commented:
Glad I could help.  Thanks for he A. :^)

Cd&

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