Create a footer with a id="rodape"
and then put in css:
html:
<footer id="rodape"><a style="position: relative; right: 0px; float:left; font-size: 50px; display: block; text-decoration: none; color: #ffffff; " href="javascript:drop('fechar')" id="link"><span> < </span></a>
</footer>
css:
#rodape{
margin-bottom:0px;
bottom: 0px;
background: #333333;
width: 100%;
height: 50px;
position: absolute;
right: 0px;
-webkit-transition: 0.5s;
}
the width: 100%
and the height: 50px
are optional.
If you don’t want one width: 100%
aligns with the left:
.
script to hide/appear
function drop(ver){
if(ver == "fechar"){
document.getElementById('rodape').style.left = "-97%";
document.getElementById('link').style.float = "right";
document.getElementById('link').href = "javascript:drop('abrir')";
document.getElementById('link').innerHTML = ">";
}if(ver == "abrir"){
document.getElementById('rodape').style.left = "0px";
document.getElementById('link').style.float = "left";
document.getElementById('link').href = "javascript:drop('fechar')";
document.getElementById('link').innerHTML = "<";
}
}
And to appear when the user is at the end this link can help you http://www.1stwebdesigner.com/tutorials/create-stay-on-top-menu-css3-jquery/
CSS with
display: fixed
and JS to hide and display, plus the two arrow images...– Tiago César Oliveira
Is there a property regarding? I found a solution called "Sticky footer" but still have to solve the retractable bar problem.
– Roberto_Amaral