WordPress.org

Ready to get started?Download WordPress

Forums

Changed header - now cut off on sides (kubrick theme) (6 posts)

  1. kdavison007
    Member
    Posted 8 years ago #

    I've been looking at css code for the past two days now and can't seem to get my page to widen a bit to accomodate my wider header I added. I'm using the default Kubrick theme on WP 1.5 Can anyone direct me to the code I need to change? I thought this would be in #page or #header but nothing seems to fix it. Help!

    http://lunatography.com is the site if you want a peek at what's going on.

  2. neetij
    Member
    Posted 8 years ago #

    You'll find the width specification in the Kubric theme's stylesheet file.
    By default, I think the width is 760px under #page declaration. You can find this after the /* begin structure */ comment.

  3. bmedia
    Member
    Posted 8 years ago #

    Hiya.

    Your main page (header area) shows you have:

    #header { margin: 0 !important; margin: 0 0 0 1px; padding: 1px; height: 198px; width: 758px; }
    #headerimg { margin: 7px 9px 0; height: 192px; width: 740px; }

    I'm certainly NOT an expert, but could it be you need to make the two widths the same here? (i.e., width 758px for both)

    Just a thought. :-) These are in the header.php template, I think.

    And make sure the stylesheet (#page) has the same width?

  4. neetij
    Member
    Posted 8 years ago #

    kay9, I think that is also important to consider once overall width is changed, but it isn't the way to expand the overall template's width. If kdavison007 wants everything to fit, the header should be 740px in width and 198px in height.
    They are different as #headerimg is simply width of image used, and it should cut off any image larger than 740px.
    The #header is wider because it includes a margin totalling to 2px.
    758 + 2 = 760 = width of #page.
    740 + 18 = 758 = width of #header.
    Thats how the default theme has that nice border around the header image.

    I think this is how it works. Please correct me if I'm wrong.

  5. bmedia
    Member
    Posted 8 years ago #

    You got me, Neetij. I certainly am no expert! It was just a thought, like I said. :-)

  6. kdavison007
    Member
    Posted 8 years ago #

    Thanks, guys. I now have the header how I want it, but I need to expand the rest of the page to meet my new width of 810. Again, sorry to bother, but I've looked through the code and can't seem to pinpoint the section that will make the whole page wider so things will line up directly below my header.

Topic Closed

This topic has been closed to new replies.

About this Topic