Title: changing #container width
Last modified: August 21, 2016

---

# changing #container width

 *  Resolved [ramin-36](https://wordpress.org/support/users/ramin-36/)
 * (@ramin-36)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/changing-container-width/)
 * Hey I have a problem changing the main container with.
    I have a Asteroid child
   where I can change the width setting it to a percentage value, (e.g. width: 92%;)
   But when on the page it overwrites the value with another value coming from media
   =screen, and I dont know where this is set.
 *     ```
       media="screen"
       #container {
       width: 976px;
       }
       media="all"
       @media screen
       #container {
       background-color: #FFF;
       border: 8px solid #000;
       margin: auto;
       width: 92%;
       ...
       ```
   
 * width 92% is just crossed

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

 *  Theme Author [ronangelo](https://wordpress.org/support/users/ronangelo/)
 * (@ronangelo)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/changing-container-width/#post-4484105)
 * The 976px comes from the values set on the options page.
 * The code below would work if added on `Asteroid Options -> Custom CSS`
 *     ```
       #container { width: 92%; }
       ```
   
 * If instead you’re adding it on the child theme’s style.css, use this:
 *     ```
       body div#container { width: 92%; }
       ```
   
 * If that doesn’t work, add the `!important` declaration.
 *     ```
       body div#container { width: 92% !important; }
       ```
   
 *  Thread Starter [ramin-36](https://wordpress.org/support/users/ramin-36/)
 * (@ramin-36)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/changing-container-width/#post-4484108)
 * great thank you Ron, didn’t see the options before.

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

The topic ‘changing #container width’ is closed to new replies.

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

## Tags

 * [container](https://wordpress.org/support/topic-tag/container/)
 * [media screen](https://wordpress.org/support/topic-tag/media-screen/)

 * 2 replies
 * 2 participants
 * Last reply from: [ramin-36](https://wordpress.org/support/users/ramin-36/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/changing-container-width/#post-4484108)
 * Status: resolved