Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bootstrap twitter glyphicon shadow css

Can anyone help me get some bootstrap glyphicons buttons look right? I am trying to add some shadow to them in CSS but the shadow goes around the button, not the icon itself. Is there a way to make the shadow around the icon (or at least the form of the icon)? Thank you, Alex

like image 701
user27186 Avatar asked Aug 27 '14 23:08

user27186


1 Answers

Since the icons are rendered using a custom font you have to use text-shadow:

.glyphicon{
    text-shadow: 0 0 5px red;
}

Demo fiddle

like image 72
omma2289 Avatar answered Sep 21 '22 18:09

omma2289