JSFiddle - React, Tailwind, and code Playground
by jrb9249
HTML
<body>
<div class="div_button">
<p>Click Me!</p>
</div>
</body>
CSS
.div_button
{
border: solid 1px gray;
width:80px;
height:25px;
background:#A3A3A3;
text-align:center;
margin:0 auto;
margin-top:50px;
}
.div_button:hover
{
border: solid 1px blue;
background:#A1A1A1;
cursor:pointer;
}
JavaScript
$('.div_button').click(function(){
alert('Run a postback via JS');
});