Why not just put that in your regular stylesheet? If you're trying to
override an existing style, you can use a class.

Anyway, have a look at the $html->style() method:

http://api.cakephp.org/class/html-helper#method-HtmlHelperstyle

Also, your path can be absolute -> url(/img/logo.jpg)

On Wed, May 6, 2009 at 7:30 AM, toby1kenobi <toby.math...@gmail.com> wrote:
>
> Hi everyone,
>
>  I'd like to add some dynamically generated CSS to my document head
> from within an element, is that possible? Ideally I'd like to insert
> something like:
>
> <style type="text/css" media="screen">
> #navigation-holder a#logo span {
> background:transparent url(../img/logo.jpg) no-repeat left top;
> }
> </style>
>
> to $scripts_for_layout, I can't see how to do this though?
>
>  Thanks in advance,
>
> Toby
> >
>

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

Reply via email to