Support » Themes and Templates » twentyeleven page size adjustment

  • I’m using twentyeleven for the first time. I want to get the page size to fill the browser window side-to-side, filling the aperture. In other words, I don’t want any background area showing.
    Can’t figure out how to do that. I’ve scanned through the style.css and functions.php files, but I’m lost, given I don’t know the schema or logic used. (The style sheet is HUGE!!!)
    Anyone know a clean way of doing this?

Viewing 8 replies - 1 through 8 (of 8 total)
  • esmi

    (@esmi)

    Forum Moderator

    Do not edit the Twenty Eleven theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. Create a child theme for your changes.

    Yes, I should have mentioned that: I already have a child theme and it is working on its merits. I just need to get sides of the pages out to the browser edges.

    esmi

    (@esmi)

    Forum Moderator

    Have you tried using using Firefox with the Firebug add-on for this kind of CSS work.
    http://getfirebug.com/

    You can basically delete the style declarations below, in style.css to give you 100% width.

    All other widths in the default style sheet seem to be in relative units so everything should just stretch to fit, but right at the bottom of the stylesheet there are some max-widths defined specifically for IE7 so you might want to have a look at those if you need to

    body {
    padding: 0 2em;
    }
    #page {
    margin: 2em auto;
    max-width: 1000px;
    }

    esmi

    (@esmi)

    Forum Moderator

    No! You do not delete CSS from the parent theme! You over-write the CSS in the child theme’s stylesheet,

    Esmi, not to worry; I use child themes correctly.

    Yes, I use Firebug daily; but with the sheer size of the style file and not knowing the logic behind the structure (which there can be literally thousands of permutations), it couldn’t be counted on this time. Thanks to Vayu and alchymyth, it was much easier to clean it up.
    Thanks.

    @esmi not everyone uses child themes, i just don’t see the point myself since I never upgrade themes when new version are released. If i want a new clean twenty eleven theme I just dl a new one

    The important thing is which styles needed to be changed, which he couldn’t find, i just pointed him to the rules that were determining the width.

    But your right!

    esmi

    (@esmi)

    Forum Moderator

    not everyone uses child themes

    Nevertheless the official line on this is that the default theme should never be modified.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘twentyeleven page size adjustment’ is closed to new replies.