CGFeedback how tomake "Additional Comments" textbox smaller?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: CGFeedback how tomake "Additional Comments" textbox smal

Post by JohnnyB »

If the HTML is like this:

Code: Select all

<div class="col70" style="float: left; width: 70%;">
<textarea class="cms_textarea" rows="15" cols="80" name="m9233acomment"></textarea>
</div>
Without seeing your site's CSS, you could start by adding a rule that will make the textarea smaller using a %:
example: .col70 .cms_textarea {width: 80%}

CSS will override the textarea's cols attribute.

But, you could probably try something like this in your template:

{$input_comment|replace:'cols="80"':'cols="50"'}

use whatever cols value you need....
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1968
Joined: Mon Jan 29, 2007 4:47 pm

Re: CGFeedback how tomake "Additional Comments" textbox smal

Post by Jo Morg »

CrushCreate wrote:I have looked in the "Comment Form Template" but did not see it specified there.

I only see
<div class="col70" style="float: left; width: 70%;">
{$input_comment}
</div>

Where do I need to make the change to the {$input_comment}?
Please specify a path to the file in a typical installation.
You'll have to use a Smarty modifier, replace in order to do what you want, something like:

Code: Select all

{$input_comment|replace:'rows="15" cols="80" ':'<whatever_replacement_you need>'} 
And you'll have to use it on the template: "Comment Form Template".
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Post Reply

Return to “Layout and Design (CSS & HTML)”