set CSS3 font-face via JS
Hey everyone,
how can I set the CSS font-face with url to the font file using Javascript?
Is there any document, which indicates the correspondig JS commands for the various CSS features?
Thanks,
Steve
Are you able to create a class in CSS then add the class via JS?
I'm always up for networking with fellow web professionals. Connect with me on
LinkedIn if you like!
would be possbile, but would be a huge effort to change my sourcecode to css classes.
currently i simply call textelement.style.fontFamily = XY, textelement.style.fontSize = XY and so forth.
so i hoped that there was something like textelement.style.fontUrl ?
Thanks,
Steve
however, I guess I need to create a CSS class via JS and then assign it to the particular element - I've spent a couple hours now finding a cross browser solution for that, but i couldn't find anything. can you help me?
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks