Form Block - Text Area width problem in IE8
Permalink 1 user found helpful
Hi,
I have added the core Form Block with a text area as an answer to a page. The settings are width 50 and height 3.
When viewing in Firefox, the text area stretches right across the page, but in IE8 the text area only stretches to the width of the widest item in the same column (so only to the width of the submit button, or to the width of a text field answer). Screenshots attached
Any thoughts?
Thanks.
I have added the core Form Block with a text area as an answer to a page. The settings are width 50 and height 3.
When viewing in Firefox, the text area stretches right across the page, but in IE8 the text area only stretches to the width of the widest item in the same column (so only to the width of the submit button, or to the width of a text field answer). Screenshots attached
Any thoughts?
Thanks.
Did you ever find the solution to this problem? I am having the same issue. I am sure it has to do with the CSS. Don't you just love IE?
I had to go into the concrete5\concrete\blocks\form\controller.php file and locate the line
(I can't remember if style="width:100%" was in the original php file)
Anyway, change style="width:100%" to a fixed amount of pixels, e.g. style="width:400px" or whatever works on your pages.
Not a great solution, but it worked for me.
return '<textarea name="Question'.$msqID.'" cols="'.$questionData['width'].'" rows="'.$questionData['height'].'" style="width:100%">'.$val.'</textarea>';
(I can't remember if style="width:100%" was in the original php file)
Anyway, change style="width:100%" to a fixed amount of pixels, e.g. style="width:400px" or whatever works on your pages.
Not a great solution, but it worked for me.
Ok, thanks for the quick reply! :) That'd be a quick fix for now.