<!DOCTYPE html> <html> <head> <script type="text/javascript"> function m() { document.getElementById("f").style.position = "fixed"; } </script> </head> <body onload="m();"> <div style="-moz-transform: translate(50px, 50px); border: 1px solid red; width: 7ch;"> A <div id="f" style="left: 50px; top: 100px; border: 1px solid blue; width: 7ch;"> 0 </div> </div> </body> </html>