开发者

Text not centrally aligned in IE and FF

开发者 https://www.devze.com 2023-02-14 01:20 出处:网络
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.

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:

Text not centrally aligned in IE and FF


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

Text not centrally aligned in IE and FF

[Edit] Larger version of image


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消