JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<div id="test">Hello, world</div>
</body>
</html>
CSS
body {background:lime}
#test { position:absolute;background:blue; right:50px;left:auto;width:50px;top:0;bottom;0}
JavaScript
$(function(){
$('#test').click(function(){
$(this).css("right", "-=5px");
});
});