WordPress.org

Ready to get started?Download WordPress

Forums

Asteroid
[resolved] changing #container width (3 posts)

  1. ramin-36
    Member
    Posted 8 months ago #

    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

  2. ronangelo
    Member
    Theme Author

    Posted 8 months ago #

    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; }
  3. ramin-36
    Member
    Posted 8 months ago #

    great thank you Ron, didn't see the options before.

Reply

You must log in to post.

About this Theme

About this Topic