Different img on each page using 1 template?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am

Different img on each page using 1 template?

Post by Ziggywigged »

I have a div with a background image on each page and I'd like to show a different image depending on what page it is. The bg img is controlled via css.

Is there a way to do this using css and tags in CMSMS without having to create a new template for each page?
Thanks.
Take a penny, leave a penny.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Different img on each page using 1 template?

Post by Dr.CSS »

Depending on which div the image is a background for you can add a class to the div using class="{$page_alias}"...
Post Reply

Return to “Layout and Design (CSS & HTML)”