cimbom
cimbom

Reputation: 259

Change color of glyphicons in Bootstrap v2.3.2

is there any possibility to change the color of glyphicons from bootstrap v2.3.2 without the migration in bootstrap v3.x? I use, for example, this class:

<i class="icon-edit"></i>

I would be happy, if you can help me.

Greets,

Upvotes: 1

Views: 1031

Answers (2)

Nitsan Baleli
Nitsan Baleli

Reputation: 5458

As mentioned in the comments, this will be very hard to achieve in that version of bootstrap.

I'd recommend using Font Awsome

Font Awesome gives you scalable vector icons that can instantly be customized — size, color, drop shadow, and anything that can be done with the power of CSS.

Upvotes: 4

Jeroen
Jeroen

Reputation: 63719

Glyphicons in Bootstrap 2 are based on a PNG sprite. The only options you have that I see are:

  • changing the image itself and replacing references to it in Bootstrap's CSS
  • resorting to very exotic css features to change an image's color, though I'm unsure if this will work for glyphicons

In short, you can't really. Black and white (-white versions) are your only options.

Upvotes: 5

Related Questions