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 Dynamic sizing text area using overflow:auto Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Dynamic sizing text area using overflow:auto" Watch "Dynamic sizing text area using overflow:auto" New topic

Dynamic sizing text area using overflow:auto

Dale DeMott
Ranch Hand

Joined: Nov 02, 2000
Posts: 515
I am using overflow:auto inside my div tag which gives the text window a scroll bar when the text area needs it. What I want to add to the system is the ability to have the HEIGHT of the window shrink and grow according to the size of the browser window. Any clue in how to do this??
[ February 01, 2006: Message edited by: Dale DeMott ]

By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60764

Use CSS sizing rules that specify percentages for metrics.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: Dynamic sizing text area using overflow:auto
Similar Threads
Rich faces window resize issue
Controlling DIV and/or TR height
Reading a textarea as a stream
How to render an html table in a text area?
method takes longer each time