I need to make a DIV box that hovers above my website and always need it to be in the top-right of the page. I have already tried:
<div align="right" id="hover" style="position: absolute; left:0px; top:0px; right:0px; z-index:20; width:120px;">Time left:</div>
But it does not seem to stay in the top-right of the page :(, Any help?
You’ve got both a
leftand arightattribute of 0, but awidthof 120px. Those can’t all be applied unless your container happens to be exactly 120px wide. Try removing theleft:0px