using bootstrap glyphicons

I have asp.net web forms page.

In my css i'm using a .svg image in background url tag like this:


        label.error {
            background: url('TestImage1.svg') no-repeat;
        }

Instead of using a .svg image I want to use one of these bootstrap glyph icons.

http://glyphicons.bootstrapcheatsheets.com

If I want to use the icon called  .glyphicon-asterisk which looks like this

glyph1.jpg
Anyone know how I reference it this background url tag?

 background: url('TestImage1.svg') no-repeat;
LVL 1
maqskywalkerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RobOwner (Aidellio)Commented:
You can't.  It's a font that's inserted using the ::before css selector.

in otherwords, you need to add the following classes to your label

i.e.

<label class="error glyphicon glyphicon-asterisk">
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jessica WhitleySoftware DeveloperCommented:
I've been using bootstrap a lot lately and as a work around the only thing I could possibly see working would be to wrap the glyphicon in another item or use something along the lined of a conversion tool and make a copy in the correct image format you currently need for this project.
There are some great tools to create backgrounds and icon images free or to convert images online free and easily.
0
RobOwner (Aidellio)Commented:
I forgot to mention that you obviously remove:

background: url('TestImage1.svg') no-repeat;

from label.error {}
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.