WordPress.org

Forums

What sets margin width for Default Theme content? (5 posts)

  1. plnelson
    Member
    Posted 4 years ago #

    I want to change the width of the margins on either side of the main content in my Default Theme - the one by Michael Heilemann - I think this is known as the "Kubrick" theme.

    I'm not trying to change the overall width of the theme or the relative size of the sidebar vs the main content. I just want to change the left and right margins around that content, in other words the whitespace on either side of the content.

    Where in the CSS is this set? Thanks in advance.

  2. stvwlf
    Member
    Posted 4 years ago #

    if you post a URL to your page I will help you with this.

  3. plnelson
    Member
    Posted 4 years ago #

    My question is really about the style.css for that theme in general, rather than about a particular page. Here's a page I have that uses it . . .
    http://blog.nelsondev.net/

  4. stvwlf
    Member
    Posted 4 years ago #

    hi - that helps

    on that page, the left margin is padding coming from this in style.css
    line 501 It's the 45px at the end of the padding line that sets the left margin

    .narrowcolumn {
        float: left;
        margin: 0 0 0;
        padding: 0 0 20px 45px;
        width: 450px;
    }

    and the width line in the same CSS sets the right margin. if you want it narrower, change to 440px, wider change to 460px, etc.

  5. plnelson
    Member
    Posted 4 years ago #

    Thanks!!!

Topic Closed

This topic has been closed to new replies.

About this Topic