JSFiddle - React, Tailwind, and code Playground

HTML

<div>I'm still cube!</div>

<!--<div style="position: absolute; top: 10px;"><div>I'm still cube!</div></div>-->

CSS

div {
    height: 400px;
    width: 400px;
    background-color: black;
    color: white;
    font-weight: bold;
    font-size: 30px;
    text-align: center;
    font-weight: 300;
    line-height: 13;
}

body {
    height: 1000px;
}
}

JavaScript

//1)
//$('body').css('padding', '10px');
//$('div').css({'position': 'absolute', 'top': '20px'});

//var size = $('div').offset();
//$('div').text('top: ' + size.top + '; ' + 'left: ' + size.left);


//2)
//var pos = $('div').position();
//$('div').text('top: ' + pos.top + '; ' + 'left: ' + pos.left);

//3)
/*$('div').on('click', function() {
    var current = $('body').scrollTop();
    $('body').scrollTop(current + 100);
});*/