Skip navigation
steve0308
Currently Being Moderated

Full width header/footer with centered content

Jan 31, 2012 8:00 AM

Thank you in advance to anyone who can answer this question.

 

I realize this is simple to all you pros out there but I’m a little lost with the following …

 

I’m trying to create a page that has a full width header and footer, but I’d like to have a two or three column content area that’s centered.  I know you know what I mean but this would be an example http://spavitality.ca/

So far I’ve been working with a Dreamweaver Template and found that If I make the page width 100% it solves the full width header and footer part, now I’d just like to be able to center the content.

 

Any help would be appreciated, thank you.

 
Replies
  • Currently Being Moderated
    Jan 31, 2012 8:09 AM   in reply to steve0308

    Under the full width header, just put a centering container that is a fixed width.  Put all of your page's content in that container.  For example -

     

    <body>

    <div id="header">This will be full width</header>

    <div id="content" style="width:980px;margin:0 auto;">This will be 980px wide and centering</div>

    <div id="footer">This will be a full width footer</div>

    </body>

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points