Skip to content

Instantly share code, notes, and snippets.

@naveenlb
Forked from frankyonnetti/CSS--font-awesome.scss
Created July 10, 2016 04:47
Show Gist options
  • Save naveenlb/be561f1b71fe6a73cb6f4a445c66a134 to your computer and use it in GitHub Desktop.
Save naveenlb/be561f1b71fe6a73cb6f4a445c66a134 to your computer and use it in GitHub Desktop.
#fonts #css use font-awesome in CSS (background image)
.mytextwithicon {
position: relative;
}
.mytextwithicon:before {
font-family: FontAwesome;
content: "\f069";
position:absolute;
left: -5px;
top:0;
}
@naveenlb
Copy link
Author

Thanks. It worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment