File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Horizontal Scroll Bar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Horizontal Scroll Bar" Watch "Horizontal Scroll Bar" New topic

Horizontal Scroll Bar

Arulanand Dayalan
Ranch Hand

Joined: Aug 10, 2005
Posts: 124
Hi All,

I am using a Mshtml editor with an htc as an replacement to Textarea to provide rich text features. My problem is i am getting an horizontal scroll bar.
My div code in htc file is

div id=editBox align=left color="white" style="height:98px;width=740px; font-family:Arial; padding:2;border:2 inset #dfdfdf ;background-color:white;text-wrap;word-wrap: break-word;overflow-x :"hidden";"
In the place where i call the editor in do this way

TD class="Fld_Vl" colspan="3"

ed:mailEditor id="idBrfDesc" content='Desc' edit='true' onchange="javascript:funChange()" style="height:200; width=750;text-wrap;word-wrap: break-word;"

I dont get a horizontal scroll and it wraps properly, If height exceeds and a vertical scroll bar comes up, horizontal scroll bar comes up automatically. Could any one suggest how to avoid horizontal scroll bar coming up.
Thanks in advance.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
overflow-x hidden is IE only at the moment, but should be made part of the standard.

Have you tried:

overflow:hidden OR overflow:visible

jQuery in Action, 3rd edition
subject: Horizontal Scroll Bar
It's not a secret anymore!