Closed (fixed)
Project:
Webform
Version:
5.x-1.4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Jul 2007 at 17:18 UTC
Updated:
15 Jan 2013 at 17:02 UTC
Hello,
While creating webforms, I have found that the width setting of a textarea input does not effect the output, at least when textarea resize is enabled. There are issues with resizable textareas in IE as reported here. But the textarea width issue remains for me before and after the fix of adding a span tag around the input area. The html view does include both row and col values, but the width has no effect. Has anyone else had this porblem and was able to fix it?
Thanks.
Comments
Comment #1
quicksketchAs you report, the markup is fine by webform. Any css you have in your theme however will take precedence over the HTML's width and height values. I'd suggest installing Firebug for Firefox and inspecting the textarea element. It will tell you exactly what line in which css file is causing the width to be set.
Comment #2
quicksketchComment #3
salientknight commentedI can pin it right down in the CSS to system.css setting white-space:nowrap; I cannot however find a level at which I can adjust the white-space, where it is not A)overwritten by system.css and B) does not effect every other form element on the site.
Any thoughts on how I might adjust col width?
Thanks
Comment #4
drupaljohngo commentedFirebug is a necessity. I had a similar issue. The textarea in web from was extending the length of the document. What I did was use firebug by inspecting the textarea. From that, I had css injector installed and created a rule. The rule was any node of that particular form say
www.mydomain.com/form/eventfor example (just type form/event.I added the css
Simple CSS. The field is still resizeable, however it is the width I want. I can resize it, copy and paste the
settings and they will usually change upon clearing the cache and/or reloading.