Advertisement
Guest User

Fontawesome Beside Text CSS

a guest
Jan 5th, 2014
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.75 KB | None | 0 0
  1. .icon:before {
  2.   font-family: 'FontAwesome';
  3.   speak: none;
  4.   font-style: normal;
  5.   font-weight: normal;
  6.   font-variant: normal;
  7.   text-transform: none;
  8.   line-height: 1;
  9.   -webkit-font-smoothing: antialiased;
  10. }
  11.  
  12. *,
  13. *:after,
  14. *::before {
  15.     -webkit-box-sizing: border-box;
  16.     -moz-box-sizing: border-box;
  17.     box-sizing: border-box;
  18. }
  19.  
  20. /* General styles and layout */
  21.  
  22. .icon-text .col-icon {
  23.     width: 24%;
  24. }
  25. .icon-text .col-text {
  26.     width: 74%;
  27.   padding-left: 5px;
  28. }
  29.  
  30. .col-icon, .col-text {
  31.     display: inline-block;
  32.     vertical-align: top;
  33. }
  34.  
  35. .icon {
  36.     display: block;
  37.     width: 2em;
  38.     height: 2em;
  39.     border-radius: 50%;
  40.     background: rgba(0,0,0,0.8);
  41.     color: #fff;
  42.     text-align: center;
  43.     font-size: 2.5em;
  44.     line-height: 2em;
  45.     margin: 0 auto;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement