Title: Post Box Width
Last modified: August 19, 2016

---

# Post Box Width

 *  [purren](https://wordpress.org/support/users/purren/)
 * (@purren)
 * [16 years ago](https://wordpress.org/support/topic/post-box-width-2/)
 * I’m sitting on a 24″ Widescreen TFT display with a resolution of 1920×1200.
 * In other words, my screen is crazy wide.
 * Of course, when I write new posts, I don’t want these neverending lines; I want
   to be able to limit the posting box width in the same fashion that I can change
   the height of the posting box.
 * Having such a wide posting box makes it very difficult to get a proper overview
   of both how the content will look when posted but also simply to get an overview
   at all.
 * I don’t think that I’m the only one with a resolution this big,
    what can I do
   about it?
 * To be super clear, I want the post box, I.e. when clicking on “Add New Post” 
   to either be for instance 600 pixels wide, or that wordwrap occurs after certain
   number of characters.

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [16 years ago](https://wordpress.org/support/topic/post-box-width-2/#post-1504075)
 * you can add these lines to the functions.php of your theme:
 *     ```
       function custom_max_width_editor() {
       echo '<style type="text/css">#post-body-content textarea#content { max-width:600px; min-height:400px; border-right: 1px solid #ddd; }</style>';
       }
   
       add_action('admin_head', 'custom_max_width_editor');
       ```
   
 * adjust the numbers to your needs.
    `min-height` and `border` are optional.
 *  Thread Starter [purren](https://wordpress.org/support/users/purren/)
 * (@purren)
 * [16 years ago](https://wordpress.org/support/topic/post-box-width-2/#post-1504192)
 * Unfortunately, that only seems to work for the HTML-mode.
 * When I load up the “Add New Post”-page, the right width of the box flickers for
   a second and then when TinyMCE has finished loading, the width returns to 100%.
 * Any ideas?
 *  Thread Starter [purren](https://wordpress.org/support/users/purren/)
 * (@purren)
 * [16 years ago](https://wordpress.org/support/topic/post-box-width-2/#post-1504193)
 * Maybe I just need to stop being so laxy 😀
 * Went in with firebug and made a slight modification for the code above. What 
   was lacking was the selector for the visual content box which is #content_ifr.
 * After adding that, everything works solidly.
 *     ```
       function custom_max_width_editor() {
       echo '<style type="text/css">#post-body-content textarea#content, #content_ifr { max-width:600px; min-height:400px; border-right: 1px solid #ddd; }</style>';
       }
   
       add_action('admin_head', 'custom_max_width_editor');
       ```
   
 * As an aside, supplying selectors like this, isn’t that just repeating yourself?
 * `#post-body-content textarea#content`
 * Since ID’s are supposed to be unique, shouldn’t this be enough?
 * `textarea#content`
 * Have a nice day!
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [16 years ago](https://wordpress.org/support/topic/post-box-width-2/#post-1504196)
 * thank you for the correction; and, yes, you are right:
    this would be specific
   enough: `textarea#content, #content_ifr { .. }`
 *  [rcarbaugh](https://wordpress.org/support/users/rcarbaugh/)
 * (@rcarbaugh)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/post-box-width-2/#post-1504292)
 * Thank you both for this valuable information. This works very well for my problem
   of the text edit box being too wide, as it is now a fixed width. But the problem
   seemed to occur in the first place because the toolbar became too wide, and the
   text edit box widened with it. Now, the text box is controlled at a fixed width(
   and doesn’t widen even if the Safari window is widened), but the toolbar is still
   too wide, with some icons under the right column of boxes (Publish and Attributes)
   until you widen the Safari window.
 * Is there similar function code that will control the width of the toolbar?
 * It is probably asking too much, but it is curious to me that the text box and
   icon toolbar used to track with the overall window size. Now, my toolbar is too
   wide and doesn’t change width, and with this code, the window is fixed and doesn’t
   change. It is certainly workable, but what happened?
    rcarbaugh

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

The topic ‘Post Box Width’ is closed to new replies.

## Tags

 * [add post](https://wordpress.org/support/topic-tag/add-post/)
 * [edit-post](https://wordpress.org/support/topic-tag/edit-post/)
 * [post box](https://wordpress.org/support/topic-tag/post-box/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [rcarbaugh](https://wordpress.org/support/users/rcarbaugh/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/post-box-width-2/#post-1504292)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
