set CSS3 font-face via JS
Is there any document, which indicates the correspondig JS commands for the various CSS features?
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
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 ?
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?
Users Browsing this Thread
There are currently 1 users browsing this thread.
(0 members and 1 guests)