I created the icon font using custom .svg icons, and I had a problem with the add-on (or possibly another). The icons that I used to not include any add-ons in case of this issue.
For some reason, the icons seem to have moved above where they should be, and I cannot find a way to put them back in the container. Here is an example of what I'm talking about: http://i.imgur.com/RwOKWLp.png
I set "background-color" to yellow to highlight my problem.
Here is the HTML for a single icon:
<div class="vicon" aria-hidden="true" data-icon=""></div>
Here is the CSS I'm working with now:
[data-icon]:before { font-family: 'iconfont'; content: attr(data-icon); speak: none; font-size: 100%; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; } .vicon { display: inline-block; font-size: 50px; margin-top: 1em; background-color: yellow; }
@ font-face code:
@font-face { font-family: 'iconfont'; src:url('[font_location_on_company_server].eot'); src:url('[font_location_on_company_server].eot?#iefix') format('embedded-opentype'), url('[font_location_on_company_server].woff') format('woff'), url('[font_location_on_company_server].ttf') format('truetype'), url('[font_location_on_company_server].svg#icon_font') format('svg'); font-weight: normal; font-style: normal; }
Can anyone understand why this could happen?
source share