This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
Author

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
Marshal

Joined: Jan 10, 2002
Posts: 61082
    
  66

Use CSS sizing rules that specify percentages for metrics.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
jQuery in Action, 2nd edition
 
subject: Dynamic sizing text area using overflow:auto