I have a fixed element that is a small menu with a few links that will follow you on the page.
I am using Squarespace and make a new widget with the links. In the CSS I put this code:
#moduleContent18520661 {
position:fixed !important;
margin: auto;
top:700px;
left:400px;
cursor:hand;
background:#efefef;
border:1px solid #ffcc00;
width:480px;
z-index:100;
}
It works perfect only when I align it on my computer. When I look on my laptop it’s too far down.
How can I pin the element to always be on the bottom of the screen no matter what size the screen is?
If you’re using
position: fixedyou can explicitly position to the bottom, or any other side, of the screen:Just remove the
topdeclaration and replace with the distance you want the bottom edge of the element to to maintain from the bottom edge of the window.Also,
cursorshould either becursor: pointer;or should havecursor: pointer;follow thecursor: hand;, as that’s a purely IE 6 (if I remember correctly) proprietary CSS property value.