Get a free trial // Grow your CSS skills // Land your dream job

Footer content not staying within "wrapper"

  • # November 9, 2009 at 10:09 pm

    Hi all,

    I’ve created a footer with a background image that spans the entire width of the browser window. The goals is to then have the content sit within a 940px wide "wrapper" that auto centers.

    I must have a bug somewhere as the background image works fine, but the content isn’t staying within the 940px limit, no is it centering.

    Maybe something above <div id="footer"> is wrong and thus causing the problem? Any thought and input a greatly appreciated.




    # November 9, 2009 at 11:17 pm

    Well your div isn’t centering because of an error in your html.

    Currently you have:


    need to make it


    Simple mistake there.

    Also, why not make one class for all of your footer links? Currently you have a different id attached to each link…just saw that as odd.

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

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed