PDA

View Full Version : center text in footer


rhythmofthecosmos
09-06-2009, 06:50 PM
For some reason I just can't do it..

www.leehughes.co.uk

Am trying to get the sponsorship logos here in the center

#footer #meta {
float: left;
width: 50%;
}
#footer #copyright {
float: left;
width: 50%;
text-align: right;
}
#footer #sponsorship {
float: left;
width: 50%;
text-align: center;
}

thanks

DWcourse
09-06-2009, 10:13 PM
#footer #meta {
float: left;
width: 25%;
}
#footer #copyright {
float: right;
width: 25%;
text-align: right;
}
#footer #sponsorship {
margin-left: auto;
margin-right: auto;
}

You can set the widths to whatever you need. In the html make sure sponsorship appears after the other two.

rhythmofthecosmos
09-06-2009, 10:32 PM
wicked thanks..

i changed the meta one to 40% that got it pretty close central :)