Not really, you can include one normally like this:
 
<link rel='stylesheet' type='text/css' href='spec.css' />
 
or with a document write in the beginning of the document, or you can access some css properties directly for a layer after creation like this:
myLayer.css.padding="4px" 
 
although not all css attributes are available in all browsers.
 
Now if you are using any of the "skin' widgets, the line:
document.write('<script language="Javascript" src="'+theme+'style.js"><'+'/'+'script>');
actually includes a .css file from the theme directory, and this can give problems with conflicting names if you include a second yourself.
 
Of course you can just put a little inline css in the head as well:
<style>blah</style>
 
Cheers,
Richard  :o
 
[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2)
----- Original Message -----
Sent: Friday, January 19, 2001 1:03 PM
Subject: [Dynapi-Help] (no subject)


Hi !

I'm currently trying to apply dynamic stylesheets for font writing through a conventionnal document.write('<style type="text/css">'+mystyle+'</style>')...


Then I get problems with IE4 and IE5 to use the font classes I defined.


Is there a special way to apply dynamic styles with dynAPI 2?

Is there already an object in the dyndocument which purpose is to define font styles ?


Thanks for your help....

Luc

Reply via email to