Click to See Complete Forum and Search --> : Div positioning


Mr-T
09-25-2009, 09:49 PM
I'm in the middle of redesigning my new portfolio website and i'm having trouble getting the footer to work correctly.

It's placed at the bottom of my page but the footer background won't expand the full length of the screen. Also it seems to be stuck on the left hand side of the page.

Is there any way of fixing this ?


http://gcstudios.co.uk/new << That is the link to what i have so far.

All help would be much appreciated, Thanks in advance.

,Gary

Coyotelab
09-26-2009, 05:40 AM
this should do it:
.footer {
background:transparent url(http://gcstudios.co.uk/new/images/footer.png) repeat-x scroll 0 0;
bottom:0;
float:right;
margin:0 auto;
position:relative;
width:100%;
}

Mr-T
09-26-2009, 06:52 AM
Thanks that worked a treat. Any idea how to get the three boxes in the footer to centre ?

nathandelane
09-30-2009, 12:00 AM
Thanks that worked a treat. Any idea how to get the three boxes in the footer to centre ?

Contain those three boxes in another single div that has the CSS:

margin: 0 auto;