Form tableless layout : removing the inline style from
Permalink Browser Info Environment
Hello ,
This is just a quickee in case anyone else is looking to get rid of the standard inline style for textarea 95 %
This of course using the fantastic add on Form tableless layout
just add following code where you see :
if ($questionRow['inputType'] == 'text') {
$question['type'] = 'textarea';
} else if
change that to this
if ($questionRow['inputType'] == 'text') {
$question['type'] = 'textarea';
//added to get rid of inline style
$question['input'] = str_replace('style="width:95%"', '', $question['input']);
} else if
there hope I saved someone somewhere 10 mins
This is just a quickee in case anyone else is looking to get rid of the standard inline style for textarea 95 %
This of course using the fantastic add on Form tableless layout
just add following code where you see :
if ($questionRow['inputType'] == 'text') {
$question['type'] = 'textarea';
} else if
change that to this
if ($questionRow['inputType'] == 'text') {
$question['type'] = 'textarea';
//added to get rid of inline style
$question['input'] = str_replace('style="width:95%"', '', $question['input']);
} else if
there hope I saved someone somewhere 10 mins
Type: | Discussion |
---|---|
Status: | New |