Title: Comment box extends right when typing
Last modified: August 18, 2016

---

# Comment box extends right when typing

 *  [brianbonner](https://wordpress.org/support/users/brianbonner/)
 * (@brianbonner)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/comment-box-extends-right-when-typing/)
 * For some reason the comment box extends right when you start typing. Also the
   words extend beyond the box before wrapping. I cannot figure out why. This is
   when viewing the individual post and commenting.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/comment-box-extends-right-when-typing/#post-187004)
 * Looks okay here in FF and IE6.
    Did you fix it ?
 *  [prissed](https://wordpress.org/support/users/prissed/)
 * (@prissed)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/comment-box-extends-right-when-typing/#post-187009)
 * In your comments.php file, you have this in the textarea tag:
 * style="width:98%" cols="100%"
 * For some reason, in IE, when you start typing, it pushes it out past the content
   div. IE can’t get it’s percentages straight and can’t tell what’s containing 
   what.
 * I would suggest either removing the style tag and using a fixed width col width,
   or set the style to a fixed pixel width (which should override whatever’s in 
   the col attribute).
 *  Thread Starter [brianbonner](https://wordpress.org/support/users/brianbonner/)
 * (@brianbonner)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/comment-box-extends-right-when-typing/#post-187249)
 * I was looking at that tag,but I don’t know what to replace it with.
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/comment-box-extends-right-when-typing/#post-187250)
 * style=”width:300px”;
 * That should do, then adjust the 300 to suit.
 *  Thread Starter [brianbonner](https://wordpress.org/support/users/brianbonner/)
 * (@brianbonner)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/comment-box-extends-right-when-typing/#post-187251)
 * That fixed it. Should I leave the rest of the code alone? or should I get rid
   of cols and rows?
 *  Thread Starter [brianbonner](https://wordpress.org/support/users/brianbonner/)
 * (@brianbonner)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/comment-box-extends-right-when-typing/#post-187252)
 * Well I deleted rows and columns and it still works fine
 *  Thread Starter [brianbonner](https://wordpress.org/support/users/brianbonner/)
 * (@brianbonner)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/comment-box-extends-right-when-typing/#post-187261)
 * OK no, I was looking at comments in the popup window and not comments in the 
   permalink. the above code does not work. I looked at the default code and tried
   it, but it made the box and post cover the sidebar all the time. You would think
   the default code would be right. But I did notice it did not use the word style
   or width, so I modified it to:
 * ` <p><textarea name="comment" id="comment" cols="50%" rows="10" tabindex="4">
   </textarea></p> `
 * and that worked fine.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Comment box extends right when typing’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [brianbonner](https://wordpress.org/support/users/brianbonner/)
 * Last activity: [21 years, 1 month ago](https://wordpress.org/support/topic/comment-box-extends-right-when-typing/#post-187261)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
