Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-11 05:03:25

deronsizemore
Member
From: Kentucky
Registered: 2005-11-02
Posts: 324

change the size and look of the comment form and comments?

I found “comment_form” under forms but I cannot see how to change the size and look of it? If you check out my site @ www.deronsizemore.com and click one of the test articles you’ll see the comment form is a little to big for the content area. Where can I edit this at?

Thanks

Offline

#2 2006-01-11 13:05:55

TNT
Member
From: Rotterdam, Netherlands
Registered: 2006-01-06
Posts: 256
Website

Re: change the size and look of the comment form and comments?

You should check the sourcecode of your page. There you can see the CSS-classes that are assigned to the different input fields. For example, the CSS-class of the name input field is <code>.comment_name_input</code>. Add this class to your CSS-file, change the width and you’re done.


Prrrrrrrr

Offline

#3 2006-01-11 13:11:54

deronsizemore
Member
From: Kentucky
Registered: 2005-11-02
Posts: 324

Re: change the size and look of the comment form and comments?

Oh my gosh…and it’s that easy. I kept thinking there must be some form to specify rows and cols to make the textarea smaller! Man I make things to complicated sometimes! Thanks for the help

Offline

#4 2006-01-11 13:13:38

TNT
Member
From: Rotterdam, Netherlands
Registered: 2006-01-06
Posts: 256
Website

Re: change the size and look of the comment form and comments?

You’re welcome.


Prrrrrrrr

Offline

#5 2006-06-05 09:23:09

giddyn
New Member
From: Surrey, UK
Registered: 2006-05-13
Posts: 7
Website

Re: change the size and look of the comment form and comments?

Hello,

This is probably more of a CSS query rather than specifically TXP, but hopefully you can help.

I’m trying to change the width of the comment input field.

The page source is showing <textarea class="txpCommentInputMessage" name="message" id="message" cols="25" rows="5"></textarea>

I have added the following to my CSS
<code>
txpCommentInputMessage
{ width: 200px;
}</code>

But it still doesn’t change the width. Am I missing something obvious? Any pointers gratefully received.

Offline

#6 2006-06-05 09:38:01

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: change the size and look of the comment form and comments?

You’re missing a dot in front of txpCommentInputMessage.

Offline

#7 2006-06-05 11:01:34

giddyn
New Member
From: Surrey, UK
Registered: 2006-05-13
Posts: 7
Website

Re: change the size and look of the comment form and comments?

Thanks for the quick reply. I have added a dot but it still doesn’t change the width.

There are no inline styles that I can see and the header style is:

<code> <style type=“text/css” media=“screen”> body { background: url(“/txp/images/kubrickbgcolor.gif”) fixed center top; } #page { background: url(“/txp/images/kubrickbg2.gif”) repeat-y top; border-left: 1px solid #1F3851; border-right: 1px solid #1F3851; } #header { background: url(“/txp/images/kubrickheader2.jpg”) no-repeat bottom center; } #footer { background: url(“/txp/images/kubrickfooter2.jpg”) no-repeat bottom; border: none; } </style>
</code>

so I can’t see that it would affect the Comment Input.

Offline

#8 2006-06-05 15:51:53

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: change the size and look of the comment form and comments?

Is there a live site? Make sure your curly braces and semicolons are closed in your CSS (validate)

Last edited by deldindesign (2006-06-05 15:55:18)

Offline

Board footer

Powered by FluxBB