CSS BUTTON WITH ICON [closed]

Omg! Format your code!

Icons by Bootstrap or Semantic are fonts, not images.
So if you want to place a image as an icon on a button you should do something like that:

button {
    background: url(youricon) no-repeat ....;
    padding-left: 25px;
}

It just places an image on the leftside of your button and idents your text.
Otherwise you should learn how bootstrap works (its really simple!)
For examples how it works with fonts you can take a look to W3C:
http://www.w3schools.com/w3css/w3css_icons.asp

Leave a Comment