Icon Fonts Trouble

May 05, 2017 08:17

My icon fonts aren't working and I was wondering if it were possible to fix it.

This is my original post at support.

After I upload my CSS, save, then go to my lj, the stylesheet is empty and this is placed in it: /* suspect CSS: backslash hex */

After a few Google searches, I believe this is coming from me putting in special characters in my CSS.

::EXAMPLE::

div.comments a:link::before{
content: "\e90f"; <------- HERE
font-family: 'IcoMoon', 'SofiaPro', Helvetica, Arial, sans-serif;
font-weight: 400;
padding: 2px;
}

I created an icon font and that is the number/code assigned to that character. Everything works fine when I edit the CSS in the browser, but when I actually apply that CSS to my journal the CSS is replaced with /* suspect CSS: backslash hex */. I think that the special character code, like "\e90f" is doing this. So, it's my understanding (though, I don't think I'm understanding well) is that LJ can't read/handle the backslashes in the above code. Is this right? And if so, is there a way around it? Or am I way off base here and /* suspect CSS: backslash hex */ doesn't mean that at all.

Thank you for any help!

free accounts, stylesheet

Previous post Next post
Up