Change color when hover a font awesome icon? -


base in font awesome documentation create icon:

<span class="fa-stack fa-5x">   <i class="fa fa-circle fa-stack-2x"></i>   <i class="fa fa-flag fa-stack-1x fa-inverse"></i> </span> 

this code create html:

<span class="fa-stack fa-5x">   <i class="fa fa-circle fa-stack-2x">::before</i>   <i class="fa fa-flag fa-stack-1x fa-inverse">::before</i> </span> 

it stacked flag icon. want change icon color on hover event, tried these:

.fa-stack:hover{ color: red } .fa-stack i:hover{ color: red } .fa-stack before:hover{ color: red } 

but not working.

if want change colour of flag on hover use this:

http://jsfiddle.net/uvamhedx/

.fa-flag:hover {      color: red;  }
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>    <i class="fa fa-flag fa-3x"></i>


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -