dsaba Posted June 21, 2008 Share Posted June 21, 2008 Let's say you have a textarea 30px by 30px, you fill it with more than 10,000 text characters. It will obvious that the scrollbars will activated because there is so much text in the small space. In other words, it 'overflowed'. Now other than common sense, is it possible to tactically tell with javascript/css when text in a textarea has overflowed, or caused there to be the appearance of of scrollbars, height scrollbars and/or width scrollbars. If so, I'd like to see some code to achieve this. -Thanks Link to comment https://forums.phpfreaks.com/topic/111199-tell-if-textarea-has-scrollbars-or-not-or-has-overflowed/ Share on other sites More sharing options...
haku Posted June 21, 2008 Share Posted June 21, 2008 You can force scrollbars in FF by setting the height of the body to be 100.1% in your CSS. Link to comment https://forums.phpfreaks.com/topic/111199-tell-if-textarea-has-scrollbars-or-not-or-has-overflowed/#findComment-570840 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.