Javascript examples for jQuery:CSS
JQuery CSS position right
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.6.js"></script> <style id="compiled-css" type="text/css"> div{/* w w w .jav a 2 s . c om*/ width:100px; height:100px; position:absolute; left:100px; background:red; } </style> <script type="text/javascript"> $(window).load(function(){ $('div').css({ left: 'auto', right: 0 }); }); </script> </head> <body> <div></div> </body> </html>