Title: Width  single post\page
Last modified: August 24, 2016

---

# Width single post\page

 *  Resolved [moonkir](https://wordpress.org/support/users/moonkir/)
 * (@moonkir)
 * [11 years ago](https://wordpress.org/support/topic/width-single-postpage/)
 * Hi Tom
    how to correctly adjust the width of a single page or a single post without
   sidebars? I use this style in the child css – him wokrs It seems so wrong
 *     ```
       @media screen and (min-width: 769px) {
       .grid-100 {
         width: 75%;
         margin-left: auto;
         margin-right: auto;
       }
       }
       ```
   
 * Thx for help

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

 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [11 years ago](https://wordpress.org/support/topic/width-single-postpage/#post-6101187)
 * Are you wanting to do all pages/single posts, or only specific ones?
 * You could do something like this for all single pages and posts:
 *     ```
       .page.no-sidebar .grid-container,
       .single.no-sidebar .grid-container {
             max-width: 800px;
       }
       ```
   
 * For a specific page, you’ll need to know the ID of that page:
 *     ```
       body.page-id-xx.no-sidebar .grid-container {
             max-width: 800px;
       }
       ```
   
 * For a specific post, you’ll need to the ID of the post:
 *     ```
       body.postid-xx.no-sidebar .grid-container {
             max-width: 800px;
       }
       ```
   
 * Hope this helps 🙂
 *  Thread Starter [moonkir](https://wordpress.org/support/users/moonkir/)
 * (@moonkir)
 * [11 years ago](https://wordpress.org/support/topic/width-single-postpage/#post-6101230)
 * So by changing the width of the entire container site
    I change only the width
   of the page’s content or write The width of the site (header \ menu \ footer)–
   should not be changed.. [http://savepic.org/7211106.png](http://savepic.org/7211106.png)
   Thank you
 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [11 years ago](https://wordpress.org/support/topic/width-single-postpage/#post-6101250)
 * Ahh, this will do that:
 *     ```
       body.page-id-xx.no-sidebar .content-area.grid-100 {
             max-width: 800px;
       }
       ```
   
 *  Thread Starter [moonkir](https://wordpress.org/support/users/moonkir/)
 * (@moonkir)
 * [11 years ago](https://wordpress.org/support/topic/width-single-postpage/#post-6101280)
 * Thx, Tom
 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [11 years ago](https://wordpress.org/support/topic/width-single-postpage/#post-6101282)
 * You’re welcome 🙂

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

The topic ‘Width single post\page’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/generatepress/3.6.1/screenshot.
   png)
 * GeneratePress
 * [Support Threads](https://wordpress.org/support/theme/generatepress/)
 * [Active Topics](https://wordpress.org/support/theme/generatepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/generatepress/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/generatepress/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tom](https://wordpress.org/support/users/edge22/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/width-single-postpage/#post-6101282)
 * Status: resolved