Treehouse: Grow your CSS skills. Land your dream job.

Wide WordPress site scrolls horizontal – Tried everything!

  • # November 19, 2011 at 3:01 am I have rebuilt this again and I don’t know what’s causing the body to shift horizontally. It is 1156px wide. It wants to scroll before the wrapper even touches the browser.

    # November 19, 2011 at 6:41 am

    Your div #content has two margins applied to it, id remove the one from line 73. Also your div #colophon in the footer has a fixed width exceeding the containers width, id remove that on line 176 so it’s this…

    #access .menu-header,, #branding, #main, #wrapper {
    margin: 0 auto;
    width: 1156px;

    that should do it I think!

    # November 19, 2011 at 1:27 pm

    So far that works! How do I set the form to respond via email when I get a reply? Do you think this rule set is even necessary if I have the wrapper, main, and container all set to 1156px? This one:

    #access .menu-header,, #branding, #main, #wrapper {
    margin: 0 auto;

    # November 19, 2011 at 1:30 pm

    I just found the email setting but what do you think about the css question?

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.