Bootstrap – Show a link as a button

Written by Pascal Bangerter

 

Sometimes, the link text is not very visible.

Sample : More information about Bootstrap here

It's possible to improve that by adding before the tag of the link, a span tag with a Bootstrap class.
class="btn btn-default btn-xs"

<span class="btn btn-default btn-xs"><a href="https://getbootstrap.com/docs/3.3/components/#btn-groups" target="_blank" rel="noopener">ici</a></span>
Warning : dont forget to close the tag "span" aftre the end tag of the link -> </a></span>

Résultat : More information about Bootstrap here

Category: