WordPress.org

Ready to get started?Download WordPress

Forums

Scrappy
[resolved] Can I narrow the margins of this theme? (7 posts)

  1. Supergirl9801
    Member
    Posted 2 years ago #

    The brown borders on the side are too wide for the format of some of my pages...can I narrow them somehow?

    http://wordpress.org/extend/themes/scrappy/

  2. Caroline Moore
    Member
    Theme Author

    Posted 2 years ago #

    Do you need to make the content area wider? The brown borders will change size depending on the width of the available screen--so what looks "right" on a narrow screen might not look right on a wide screen.

    It's entirely possible to change the width of the content area with CSS--you'd change the .wrapper class. But it's not possible to change the size of the brown areas, per se, because they'll be different for everyone.

  3. Supergirl9801
    Member
    Posted 2 years ago #

    Yes, I need to make the content area wider. Some of my content is getting cut off or scrunched up because it's not wide enough.

  4. Caroline Moore
    Member
    Theme Author

    Posted 2 years ago #

    Then you'd add something like the following to your child theme's style.css:

    .wrapper {
        width: 1000px; //or however wide you want it to be
    }
    
    .content {
       width: 800px;
    }

    Note that this will affect all pages on your site, and you may need to make additional adjustments to get the effect you want. You can use a program like Firebug to "Inspect" your website to see which classes to adjust.

    Another option is to remove the sidebar only on those pages where the content is wide--you can do this by setting the page template to No Sidebar.

  5. Supergirl9801
    Member
    Posted 2 years ago #

    Well...that does give me the width I want for my content but then it also pushes out all of my ads I have running on the side to the very bottom of my page. Is there a way to change the width without affecting that too?

  6. Caroline Moore
    Member
    Theme Author

    Posted 2 years ago #

    No real way for me to tell without seeing an example. You may need to adjust the width of the sidebar div as well, or add more space to .wrapper.

  7. Supergirl9801
    Member
    Posted 2 years ago #

    I was able to tweak it enough to get it to fit good enough. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags