0

I am using Bootstrap 3.0, and I'm using Twitter Bootstrap Glyphicons. I am trying to use the 'glyphicon glyphicon-plus', but when I put in the class, it doesn't show.

enter image description here

P.S. I am using the page http://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css to link to bootstrap

Code:

I only have one icon and no styling for it.

<button id='b'><span class='glyphicon glyphicon-plus'></span></button>
1
  • 1
    Provide some sample code. Without any context, its hard to troubleshoot. Separately, you could be improperly linking the image for the glyph icons.
    – James Lai
    Nov 24, 2013 at 4:11

2 Answers 2

6

I have attached a JSFiddle showing the code and CSS link you supplied.

<link rel="stylesheet" type="text/css" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css">
<body>
    <button id='b'>
        <span class='glyphicon glyphicon-plus'></span>
    </button>
</body>

The plus button is shown as expected

2
  • 1
    There was an edit just a few minutes ago to add that line of code - it wasn't there a day ago, when first posted Nov 24, 2013 at 15:18
  • 1
    you must also have something else in you site (other than just this button) that is causing the issue you are having. The code shown produces a grey button with a plus in it. Either show the code (HTML and CSS for the elements down to and including the button) if you want someone to help. Or check the code in your site yourself to see if there is another style that is interfering with the display of the button. What styles does you button have from your own CSS, We can only assume its in a list or nested div or something else from the image in your post? Nov 24, 2013 at 15:32
0

It was an extremely simple mistake. I forgot to add the rel='stylesheet' and type='text/css'.

1
  • Don't worry about it, glad we could help you get to a right answer. Nov 24, 2013 at 22:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.