simple button

In this example below you will see how to do a simple button with some HTML / CSS and Javascript

bootstrap tooltip on hover

Thumbnail
This awesome code was written by ChamaraHarindra, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright ChamaraHarindra ©
  • HTML
  • CSS
  • JavaScript
    <button class="adv-search">
  Advanced Search
  <i class="fa fa-info-circle icon-adv" data-toggle="adv-search" title="adv_search2_shopmat"></i>
</button>

/*Downloaded from https://www.codeseek.co/ChamaraHarindra/simple-button-woobpK */
    button {
  margin: 50px auto;
}

button.adv-search {
  display: block;
  background: #009182;
  border: none;
  padding: 10px 20px;
  color: white;
  font-size: 16px;
  border-radius: 3px;
}

.icon-adv {
  margin-left: 10px;
  font-size: 18px !important;
}


/*Downloaded from https://www.codeseek.co/ChamaraHarindra/simple-button-woobpK */
    $(document).ready(function(){
    $('[data-toggle="adv-search"]').tooltip(); 
});

Comments