The solution I use is to generate in the action inline css style
like for example

$width = ... ;
$height = ... ;
$this->sizeDiv = "width:$width;height:$height";

and then in the template include this styl;e:

<div id="..." style="<?php echo $sizeDiv ?>">
</div>

Bert.

On 18 sep, 22:16, Georg Gell <geor...@have2.com> wrote:
> Hi,
>
> how can I include somecustomstyle information in a specifictemplate?
> I would like to change the size of some divs fitting to the items in them.
> So i think i am looking for a way toinsertsomething like
> <style>.item{width:17px}</style> into thetemplate, where the 17px will
> be different for each request.
> I could create a helper for that, and use it in layout.php, but what
> information is available to this helper during the time it is used?
> Probably nothing from the action?
>
> Any ideas?
>
> Georg

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to