On Nov 16, 8:16 am, Mooya <[EMAIL PROTECTED]> wrote:
> How can i let a visitor decide the font-size?

Consider letting the user resize their text with the browser.  Most
modern browsers let the user do that, independent of how you program
your gadget.

> I've included the code below in the gadget, but how can i use the new
> font size in the CSS code?

Write __UP_font_size__ into your gadget and it will be replaced with
the value the user chose.

>
> 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 }

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>
--~--~---------~--~----~------------~-------~--~----~
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