# How to center my footer?

**URL:** <https://forum.kirupa.com/t/how-to-center-my-footer/330469>\
**Category:** web dev\
**Created:** [January 26, 2013, 10:38am UTC](https://forum.kirupa.com/t/how-to-center-my-footer/330469 "2013-01-26T10:38:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![VillaRava](https://avatars.discourse-cdn.com/v4/letter/v/ee7513/32.png) [@VillaRava](https://forum.kirupa.com/u/VillaRava)\
**Post date:** [January 26, 2013, 10:38am UTC](https://forum.kirupa.com/t/how-to-center-my-footer/330469/1 "2013-01-26T10:38:36Z")

</div>

This certainly shouldn’t be a problem but here I am. The attached file shows the basics for a website with a header and footer and a centered swf. Everything works apart from footer2 (marked as blue). footer2 is supposed to be centered and aligned with the swf (the blue square). I thought it was as simple as “text-align:center;” but that doesn’t work. I’ve tried everything I can think of and I’m getting nowhere.

#footer2 { position:absolute; text-align:center; bottom:0; width:1250px; height:26px; background:#0066CC; z-index: 5; }

Seen above is the problematic footer. Context is in the html.
