How to implement <a> tag in bootstrap button

button, css, html, twitter-bootstrap

Solution

Apply the btn class to the a instead.

<a href="/" class="btn btn-default" ...

Also take a look at the docs.

Problem

Demo JS Fiddle: I can't implement the `href` into the buttons. It will work if I put it this way : ``` <a href="/"> <button type="button" class="btn btn-default btn-custom"> <span class="glyphicon glyphicon-align-left" aria-hidden="true"></span> <br /> <span class="btntext glyphicon-class">PP bậc thang</span> </button> </a> ``` But this will result in this mess : Is there any simple way I can fix this? Thanks alot!

Original source