Trouble Centering Footer
-
i’ve got to be missing something. i’ve played around with the footer.php file and AM able to get my footer to center if i erase the whole PHP and use my own code. problem is, the site doesn’t look right when i start fiddling.
FOOTER.PHP <div class="content-btm"></div> <!-- // content --> </div> <!-- // sub-header --> <!-- footer --> <div class="footer"> <div class="copy"> <p><?php echo stripslashes(get_option('qd_footer_copyright')); ?></p> </div> <div class="right w200"> <?php if (get_option('qd_footer_iftweet') == "true") : ?> <a class="twitter" href="http://twitter.com/<?php echo stripslashes(get_option('qd_footer_twitter')); ?>">Follow us on Twitter</a> <?php endif; ?> </div> </div> <!-- // footer --> </div> <!-- // wrapper --> </div> <!-- // container --> <?php echo stripslashes(get_option('qd_ga_code')); ?> <?php wp_footer(); ?> </body> </html>STYLESHEET.CSS /* ------------------------------------------------------------- FOOTER - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ .footer { position: relative; width: 97%; margin:0 auto; padding:10px 0 0 0; } .footer .copy { float:center; width: 49%; line-height: 43px; text-align: center; } .footer p { color:#787878; text align:center; padding:0; margin:0; line-height: 43px; font-size:11px;} /* ------------------------------------------------------------- CLOSING STYLES FOR SCREEN / PROJECTION - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ }
Viewing 1 replies (of 1 total)
-
Just add ‘margin: auto;’ to ‘.footer .copy’.
Viewing 1 replies (of 1 total)
The topic ‘Trouble Centering Footer’ is closed to new replies.