I created a textarea in a new webform, and set the textarea's width parameters to 50, but it has no effect, the size of this textarea is 100%.

Firebug shows, that in "modules/system/system.base.css" in ".form-textarea-wrapper textarea" the "width: 100%;" value causes this issue. If I delete this value in Firebug, the size of the textarea will be correct.

This is a clear Drupal 7.14 and Webform 7.x-3.18 installation and I use Bartik 7.14 theme.
How can i solve this issue?
Thank you.

Comments

quicksketch’s picture

Category: bug » support
Priority: Major » Normal

As mentioned in the description of the textarea "Width" setting field: "This property might not have a visual impact depending on the CSS of your site."

Webform can't help that your theme is overriding the default behavior of the HTML it is outputting. To disable Bartik's 100% width on textarea, you'll probably need to add something like this to your CSS:

.form-textarea-wrapper textarea {
  width: auto;
}

Or of course you could simply remove the width: 100% added by Bartik.

quicksketch’s picture

Status: Active » Closed (fixed)