thanks. not sure i understand this bit though:

make a ajax call to "/ajax/options/set/fontsize:16px/" or something 
like
that

where would i make this call and which var are you talking about?

On 29 Jan, 02:59, Kaste <[EMAIL PROTECTED]> wrote:
> > thanks. i'm looking to update all textual content on the page at once.
> > if i have the font resizer buttons in my layout file, what would be the
> > best way of targetting the dynamically generated content from my cms/
> > blog / etc?
>
> > obviously, i would want to avoid having to manually  script every html
> > element on every page. Wouls this be a case for helpers?thats mainly a 
> > css-thing and feature.
> define css:
> body{font-size: 14px}  // = that's your "original"-"100%"-size
> p{font-size: 1.1em} // relative font-sizes
> h1{font-size: 1.4em}
>
> then change the "root"-font-size, and the children-elemements should
> follow accordingly.
>
> <a id="font-inc">+</a><a id="font-dec">-</a>
>
> using jQuery: (dont know prototype)
> $('#font-inc').click(function(){$('body').css('font-size','16px')});
> $('#font-dec').click(function(){$('body').css('font-size','12px')});
>
> make a ajax call to "/ajax/options/set/fontsize:16px/" or something like
> that
> and save the var in your session/user-db
> so the changes will be permanent
>
> ok, just an idea, code not tested.
> main thing is to write css that uses a good mix of absolute and relative
> sizes.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to