Mooya,

Please read this intro documentation about how to deal with user
prefs:
http://code.google.com/apis/gadgets/docs/legacy/basic.html#Userprefs

As Adam pointed to you in the example, you can use the gadget renderer
substitution. Please note that you will have to use __UP_font_size__.
There was a typo in Adam's post (missing the trailing __). Here is the
corrected full snippet:

<style type="text/css">
           body    { font-size: __UP_font_size__; font-family: Arial,
Helvetica, sans-serif }
           label   { width: 80px; margin-left: 2px; margin-top: 0px;
display:block; font-size: 100%; }
</style>

Jerome

On Nov 23, 8:25 pm, "abowman (Guru)" <[EMAIL PROTECTED]> wrote:
> <style type="text/css">
>            body    { font-size: __UP_font_size; font-family: Arial,
> Helvetica, sans-serif }
>            label   { width: 80px; margin-left: 2px; margin-top: 0px;
> display:block; font-size: 100%; }
> </style>
>
> On Nov 23, 9:35 am, Mooya <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > How can i let a visitor decide the font-size?
> > I've included the code below in the gadget, but how can i use the new
> > font size in the CSS code?
>
> > Thanks in advance.
>
> >         <UserPref name="font_size" display_name="Font Size" datatype="enum"
> > default_value="11pt">
> >                 <EnumValue value="10pt"/>
> >                 <EnumValue value="11pt"/>
> >                 <EnumValue value="12pt"/>
> >                 <EnumValue value="13pt"/>
> >                 <EnumValue value="14pt"/>
> >                 <EnumValue value="15pt"/>
> >         </UserPref>
>
> >         <style type="text/css">
> >                         body    { font-size: 11pt; font-family: Arial, 
> > Helvetica, sans-serif }
> >                         label   { width: 80px; margin-left: 2px; 
> > margin-top: 0px; display:
> > block; font-size: 100%; }
> >         </style>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to