Sent by Jukka K. Korpela on 31 March 2004 17:05
On Wed, 31 Mar 2004, Sam Carter wrote:
> Has anyone found a way to expand a <textarea> height using focus or hover in
> CSS?
>
> textarea:focus {height: 20em;}
>
> Don't some browsers support focus / hover on elements other than anchors?
Seems to work the intended way on Mozilla Firefox, for example.
To cover IE as far as possible, you could additionally use a piece
of JavaScript, like
<textarea ...
onfocus="this.style.height = '12em'"
onblur="this.style.height = '2em'">
--
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/