Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

CSS question

  • 18-03-2008 07:37PM
    #1
    Registered Users, Registered Users 2 Posts: 5,360 ✭✭✭


    Hi all,

    can anyone help me out with something,,look here
    http://smartwavetech.com/

    see the way the header and footer are 100% but the rest of the site is centered. How can i do this in CSS.

    should i have a header div and float another div in the middle for the text/logos,, then have a wrapper centered for all the middle bits and then the same as i did for the header for the footer ?


    Or is there a much easier way to get this.

    I was thinking of just setting the body background with an image but if the site went over a centain height it would repeat on it's self.

    I know it's not to hard... but i cant think of it at the moment.


Comments

  • Registered Users, Registered Users 2 Posts: 8,488 ✭✭✭Goodshape


    Header-wrapper div with 100% width. Header-inner div with 800px (or whatever) width within it and margin : auto;.

    Same for the footer.

    800px wide content-wrapper between the two.


    ....which I think is pretty much what you said. So yeah, that's the way I'd do it.


Advertisement
Advertisement