From: Richard :o <ma...@ri...> - 2001-01-19 23:49:02
|
Not really, you can include one normally like this: <link rel=3D'stylesheet' type=3D'text/css' href=3D'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=3D"4px"=20 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=3D"Javascript" = src=3D"'+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 ma...@ri... www.richardinfo.com (Everything running on, and ported to the 19/12/2000 snapshot of = DynAPI2) ----- Original Message -----=20 From: Luc THIBAULT=20 To: dyn...@li...=20 Sent: Friday, January 19, 2001 1:03 PM Subject: [Dynapi-Help] (no subject) Hi !=20 I'm currently trying to apply dynamic stylesheets for font writing = through a conventionnal document.write('<style = type=3D"text/css">'+mystyle+'</style>')...=20 Then I get problems with IE4 and IE5 to use the font classes I = defined.=20 Is there a special way to apply dynamic styles with dynAPI 2?=20 Is there already an object in the dyndocument which purpose is to = define font styles ?=20 Thanks for your help....=20 Luc |