How do I give a font awesome icon a background color?

magician11

In the footer for this page http://128.199.58.229/landingpage/

I have some font awesome icons (social media icons).

I'm trying to give them a white background just behind the icons themselves. The white background currently sticks out. I've read some posts on using a combination of width, height and border radius to achieve this, but currently no success.

.lt-bus-info .fa {
background-color: white;
border-radius: 50%;
}

Here's a jsfiddle: http://jsfiddle.net/magician11/nfz9sucn/1/ I'm looking for just the white behind the symbol: https://dl.dropboxusercontent.com/u/14057353/Screen%20Shot%202014-12-03%20at%204.01.18%20pm.png

Anyone know how to fix this? Thanks.

Lekhnath

Use stacked icons instead . Here is a fiddle, you can play with it to make it far more better. Below is full code :

HTML

<ul class="list-inline">
    <li><a href="#">
        <span class="fa-stack fa-lg icon-facebook">
          <i class="fa fa-square fa-stack-2x"></i>
          <i class="fa fa-facebook fa-stack-1x"></i>
        </span>
        </a></li>
    <li><a href="#">
        <span class="fa-stack fa-lg icon-twitter">
          <i class="fa fa-square fa-stack-2x"></i>
          <i class="fa fa-twitter fa-stack-1x"></i>
        </span>
    </a></li>
    <li><a href="#">
        <span class="fa-stack fa-lg icon-gplus">
          <i class="fa fa-square fa-stack-2x"></i>
          <i class="fa fa-plus fa-stack-1x"></i>
        </span>
        </a></li>
</ul>  

CSS

.fa-stack-1x {
    color:white;
}
.icon-facebook {
   color:#3b5998;
}

.icon-twitter {
    color:#00aced;
}

.icon-gplus{
    color:#dd4b39;
}

body {
    background-color: black;
}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I decrease the size of a font-awesome icon?

From Dev

How do I add a Font Awesome icon to file input field

From Dev

How do I get text below Icon button with font awesome

From Dev

How to change font awesome icon hover color?

From Dev

Font Awesome Background color

From Java

Can I change the color of Font Awesome's icon color?

From Dev

How to give the two font background color in tkinter?

From Java

How to style icon color, size, and shadow of Font Awesome Icons

From Dev

How to change font-awesome icon color when it is active

From Dev

How to change font-awesome icon color when it is active

From Dev

How do I change the background color of an iron-icon in Polymer?

From Dev

How do I insert a Font Awesome glyph/icon in a CakePHP submit button?

From Dev

Can font-awesome icon background be transparent?

From Dev

How do I hide a Font Awesome spinner?

From Dev

Change color when hover a font awesome icon?

From Dev

how can I align font awesome icon in bootstrap button?

From Dev

Angular: How May I change Font Awesome icon and Text on condition

From Dev

how can I align font awesome icon in bootstrap button?

From Dev

How to position font awesome icon vertically

From Dev

How to toggle font awesome icon on click?

From Dev

How to position text over Font Awesome icon?

From Dev

How to add Font Awesome icon into <input> button?

From Dev

How to insert font awesome icon into text input?

From Dev

how use icon [Font-awesome] in WPF

From Dev

How to show font awesome icon on hover

From Dev

How to use Font Awesome icon in android application?

From Dev

How to position an Awesome Font Icon after a text

From Dev

How to show font awesome icon on hover

From Dev

How can I use a font icon as a background image?

Related Related

  1. 1

    How do I decrease the size of a font-awesome icon?

  2. 2

    How do I add a Font Awesome icon to file input field

  3. 3

    How do I get text below Icon button with font awesome

  4. 4

    How to change font awesome icon hover color?

  5. 5

    Font Awesome Background color

  6. 6

    Can I change the color of Font Awesome's icon color?

  7. 7

    How to give the two font background color in tkinter?

  8. 8

    How to style icon color, size, and shadow of Font Awesome Icons

  9. 9

    How to change font-awesome icon color when it is active

  10. 10

    How to change font-awesome icon color when it is active

  11. 11

    How do I change the background color of an iron-icon in Polymer?

  12. 12

    How do I insert a Font Awesome glyph/icon in a CakePHP submit button?

  13. 13

    Can font-awesome icon background be transparent?

  14. 14

    How do I hide a Font Awesome spinner?

  15. 15

    Change color when hover a font awesome icon?

  16. 16

    how can I align font awesome icon in bootstrap button?

  17. 17

    Angular: How May I change Font Awesome icon and Text on condition

  18. 18

    how can I align font awesome icon in bootstrap button?

  19. 19

    How to position font awesome icon vertically

  20. 20

    How to toggle font awesome icon on click?

  21. 21

    How to position text over Font Awesome icon?

  22. 22

    How to add Font Awesome icon into <input> button?

  23. 23

    How to insert font awesome icon into text input?

  24. 24

    how use icon [Font-awesome] in WPF

  25. 25

    How to show font awesome icon on hover

  26. 26

    How to use Font Awesome icon in android application?

  27. 27

    How to position an Awesome Font Icon after a text

  28. 28

    How to show font awesome icon on hover

  29. 29

    How can I use a font icon as a background image?

HotTag

Archive