Here's what I've tried:
<textarea name='text' spellcheck = "true" style="height: 4em; width: 80%;" id="wider"></textarea>
I've also tried setting height with px or with %, both of which don't work. I also tried the following in my css file (as well as setting height as %, px, or em in the css, which also didn't work):
#wider{
width: 80%;
height: auto;
}
I can adjust the width either with the inline style command or with the css no problem. Why should the height be different, and what else might I try?
Thanks for any suggestions.
update: I have also tried setting the rows property in both the in-line and the CSS style. I understand that inline will overrule CSS. I just want one to work. Right now width attribute is always adjusted to reflect my change, but the height always stays the same. Is there something else I should be looking at? Thanks again!
In this case it turned out there was a "min-height" property tucked away for textareas in forms. Apparently the inline styling setting of height does not override the min-height property from the CSS file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With