Page Attribute - Change Div Background Image

Permalink
I know how to change the background image for each page as a Page Attribute but I have a website with a fixed width, fixed height style and the main background image is contained within a Div tag called wrapper. The <div id=wrapper> is called from the header file. I want to be able to add a page attribute to allow the client to be able to select from a range of four images to be used as the background for that div. I have the four images loaded into a file set called background images.

Can someone point me in the right direction for the PHP to be able to vary the background URL for this div and have it available as a Page Attribute

Thanks in advance

Ian

ianj
 
madeforspace replied on at Permalink Best Answer Reply
madeforspace
Hi Ian

I had a similar problem a while ago, check out this thread.
http://www.concrete5.org/community/forums/customizing_c5/background...

Hope it helps
ianj replied on at Permalink Reply
ianj
Thanks for that direction. It solved my problem.

regards
Ian
madeforspace replied on at Permalink Reply
madeforspace
Hi Ian

Glad it helped.