This is not happening in chrome or ie. Firefox instead is adding 50px after my footer. with analyze element and firebug it is showing that that space is outside html tags. here is the link: http://www.sociallab.ro/index_romana
Thanks!
html:
<html>
<body>
<div id="main">
</div>
<footer>
<a href="http://www.messagelab.ro" target="_blank"><div class="message_lab"><img src="images/logo_mic.png" alt="Tineret in Actiune"/></div></a>
</footer>
</body>
</html>
css:
html{
margin: 0;
padding: 0;
}
footer{position:relative;
top: -50px;
width:1060px;
height:50px;
overflow:hidden;
text-align: center;
margin:0 auto;
padding:0;}
body{
margin-top:0px;
margin:0 auto;
padding:0;
text-align: center;
height: 1950px !important;
background:url(../images/bg.png) left top repeat; }
A few things:
<div>tag inside<a>tag.heightforbodyand#wrap.footer, please remove thetop: -50px;and replace it with negativemarginasmargin-top: -50px;.To make the footer link align center
Without using div, use this way:
And CSS: