Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add hover effect to Font Awesome?

I have some social site icons that are grey. When you hover over them, I want them to change to their appropriate color (facebook: blue, google+: red, etc.). I've played around with it, to no avail. Here's the code:

  <li style="float:left;">
      <!-- start social bookmarks -->
      <div style="font-size: 32px; color: grey;">
      <i class="icon-facebook-sign" style="margin-left: 0px;"></i>
      <i class="icon-twitter-sign" style="margin-left: -12px;"></i>
      <i class="icon-linkedin-sign" style="margin-left: -12px;"></i>
      <i class="icon-google-plus-sign" style="margin-left: -12px;"></i>
      </div>
      <!-- end social bookmarks -->
    </li>
like image 981
user2275855 Avatar asked Apr 12 '13 19:04

user2275855


1 Answers

you can use:

   .icon-facebook-sign:hover{color:lightblue;}
   .icon-twitter-sign:hover{color:yellow}

http://jsbin.com/opeyoy/1/

like image 67
DGA Avatar answered Oct 21 '22 00:10

DGA