> Pascal wrote:
> myLayer.css.mycssproperty=myvalue

OK, I'm slow. It's been that kind of day.

what does the exact css setting syntax look like?
this doesn't work:

[ . . .]
            DynAPI.document.addChild(topblue);

    topblue.setHTML('<p class="homer">doh!</p>') ;
    topblue.css.font-family('serif') ;
[. . .]

neither does using =serif OR (serif) OR font OR fontfamily ... what is the
right method?

&& once I get the syntax straight, can I then use any valid css property
(padding, margin-top, etc.)?

assistance and general moral support much appreciated.

Greg



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Pascal
Bestebroer
Sent: Friday, February 09, 2001 10:56 AM
To: [EMAIL PROTECTED]
Subject: RE: [Dynapi-Help] can we add style to a DynLayer?


you can only access the .css properties after adding the layer to a parent
object.


Pascal Bestebroer
[EMAIL PROTECTED]
http://www.dynamic-core.net

> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Namens Lluis Casany
> Verzonden: vrijdag 9 februari 2001 18:40
> Aan: '[EMAIL PROTECTED]'
> Onderwerp: RE: [Dynapi-Help] can we add style to a DynLayer?
>
>
> error: 'myLayer.css' is not an object.
>
> should I to include any lib special lib?
>
> thanks in advance.
>
> -----Mensaje original-----
> De: Pascal Bestebroer [mailto:[EMAIL PROTECTED]]
> Enviado el: viernes, 09 de febrero de 2001 18:26
> Para: [EMAIL PROTECTED]
> Asunto: RE: [Dynapi-Help] can we add style to a DynLayer?
>
>
> you can set style properties using the css property of the DynLayer
>
> myLayer.css.mycssproperty=myvalue
>
>
> Pascal Bestebroer
> [EMAIL PROTECTED]
> http://www.dynamic-core.net
>
> > -----Oorspronkelijk bericht-----
> > Van: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]Namens Lluis Casany
> > Verzonden: vrijdag 9 februari 2001 18:17
> > Aan: '[EMAIL PROTECTED]'
> > Onderwerp: [Dynapi-Help] can we add style to a DynLayer?
> >
> >
> >
> > Is there any method or system to add style in a Layer?
> >
> > something like that:
> >
> > myLayer.addStyle('font-family:verdana; font-size: 9pt');
> > myLayer.setHTML('hi there!');
> >
> > thanks in advance.
> >
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> >
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>




_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to