Text not centrally aligned in IE and FF

319 Views Asked by At

Works fine in Chrome/Safari, but in FF and IE the very bottom black bar text (with copyright) the text is not aligned centrally for some reason.

Working Demonstration URL

HTML:

    <div class="copyright">
        Copyright &copy; 2011 Scirra.com.  All rights reserved.
    </div>
</body>
</html>

CSS:

.copyright
{
    color: white;
    text-align:center;
    background-color: #000000;
    font-size: 12px;
    padding: 3px;
}

Edit

Answer solves the alignment, but firefox only has the horizontal scroll bug: enter image description here

2

There are 2 best solutions below

10
On BEST ANSWER

Add overflow: hidden; to your .footerWrapper class. The -20px margin-bottom is causing the shift, and setting its overflow to hidden fixes it:

https://dl.getdropbox.com/u/113308/widget/screencap_2011-03-01_16-00-00.png

[Edit] Larger version of image

1
On

You are using Mozilla's box-shadow CSS and this is causing the horizontal scroll bar. It is not a bug but is causing the issue.