Adjusting Comment Box Height
-
I am trying to adjust the height of my comment box. I would like it to be longer, and so would like my comment box to be longer vertically, so to speak.
I have the CSS upgrade and had a play around. I tried this code but it didn’t seem to work:
#comments #respond {
max-width: 693px;
height: 400px;
}If anyone can help, that will be much appreciated. Thanks!
mabelkwong.com
The blog I need help with is: (visible only to logged in users)
-
Hi there,
You’re talking about the comment box on your individual posts below the “Share your thoughts. Join the discussion!” line, right? =)
Try this code below:
element.style { height: 400px; }This should expand your text vertically. Did that do the trick?
-Sarah
-
Hi there, to adjust the height of the comment box text area, use the following.
#comment-form-comment { min-height: 400px; } -
-
@sierraecho89, when you see element.style in your web inspector, what that indicates is that there is inline styling directly in the HTML element. Anywhere you there is an element with inline styling, you will see that, so if you add that to your CSS, it will change all those elements, even the ones you would not want to change.
-
Oh my. Thank you for the information! I wondered about that, but I couldn’t find any other elements it seemed to affect. Looks like I need to go back to Code School.. :)
-
You are welcome, and sometimes it is a bit of a challenge to figure out which HTML element you need to do the CSS on. On some themes it is more straight forward than others, and it also depends on how “creative” the theme designer got. Sometimes they use some pretty interesting ways of doing things and it can take a while to figure out.
Do let us know if you have additional questions.
- The topic ‘Adjusting Comment Box Height’ is closed to new replies.