JSFiddle - React, Tailwind, and code Playground

HTML

<div style="margin-top:0px;background-color:#CCC;">Hello, world!</div>
<a href="#" id="set-0">To 0</a> <a href="#" id="set-70">To 70</a>

JavaScript

$('#set-0').click(function(e){
    $('div').css({'margin-top':'0px'});
});
$('#set-70').click(function(e){
    $('div').css({'margin-top':'70px'});
});