Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

CSS question

  • 18-03-2008 7:37pm
    #1
    Registered Users, Registered Users 2 Posts: 5,356 ✭✭✭


    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