i'd like a different css on every page with one 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
woutersesroem
New Member
New Member
Posts: 2
Joined: Sat Jul 09, 2011 7:36 am

i'd like a different css on every page with one template

Post by woutersesroem »

Id like a different css on every page with one template. How do i do that? The solution could be create different templates. But that is not a very nice solution. Is there a module that does the trick?

You can see my testpages on:
http://www.riooladvies-michel-sikkes.nl/web/
the link to "activiteiten" shows a different background image.

Please help.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: i'd like a different css on every page with one template

Post by RonnyK »

You could use classes that you put based on page_alias or root_page. Using that class you can style differently...

See for an example...

http://forum.cmsmadesimple.org/viewtopi ... ndom+image

Ronny
woutersesroem
New Member
New Member
Posts: 2
Joined: Sat Jul 09, 2011 7:36 am

Re: i'd like a different css on every page with one template

Post by woutersesroem »

Thanks!
I'm going to give it a try.

Wouter
Post Reply

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