Images linked to withinin a stylesheet can have either an absolute or relative--to the stylesheet--path. So:
background:url(images/page_bg.jpg) top left repeat-x} is what I use for CSS-fed images. On Sun, Jul 19, 2009 at 6:30 PM, Dave Maharaj :: WidePixels.com<[email protected]> wrote: > When building a css for a Cake app what is the correct way to link to > images? > > I keep CSS images separate from site images so I have css/images > > Do I use background:url(/app/webroot/css/images/page_bg.jpg) top left > repeat-x} > > or > > background:url/css/images/page_bg.jpg) top left repeat-x} > > Dave > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
