JSFiddle - React, Tailwind, and code Playground

by venkateshwar

HTML

<input class="myButton" type="submit" value="hello">

CSS

.myButton{
    background:url(./images/but.png) no-repeat; 
    cursor:pointer;
    border:none;
    width:100px;
    height:100px;

  }

  .myButton:active {
    background:url(./images/but2.png) no-repeat;
    background-color:red;
  }