luanalbineli
2/5/2015 - 7:11 PM

CSS - Important snippets

CSS - Important snippets

Make a reusable css class to icons:

In the HTML element:
  data-icon="" WHERE f12a is the icons content
  
In the CSS
  [data-icon]:before 
  {
    content: attr(data-icon);
    font-family: 'Icons Font-family';
    line-height: inherit;
    font-size: 2em;
  }