Zeba
Zeba

Reputation: 37

Show a glyphicon in a input checkbox in a label

I have a input checkbox, I did customize is so its a little bigger and looks like a button, but i want a small info icon in the right bottem corner using a glyphicon

This is what i got right now, but is wont show any glyphicon:

                <div class="col-sm-4">
                    <label class="btn btn-primary btn-block btn-lg-lg">
                        <span class="glyphicon glyphicon-info-sign" style=""></span>
                        <input type="checkbox" style="display: none;" name="lang[]" value="Vue" autocomplete="off">Vue
                    </label> 
                </div>

This wont show up anything. How to fix?

Upvotes: 0

Views: 319

Answers (1)

user10098815
user10098815

Reputation:

You have to add glyphicons manually, add the following line inside your head tags

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css" rel="stylesheet">

or use an older bootstrap version(example: 3.3.7)

Upvotes: 1

Related Questions