Different Headers
Posted: 22 July 2008 09:16 AM   [ Ignore ]  
Summer Student
Total Posts:  2
Joined  07-21-2008

I’ve got a question, and I checked the expressionengine site, but couldn’t find an answer. I would like every weblog to have a different color header. For example, Home would be one color, About would be another color. So every time that you clicked a tab across the top you would get a different color header. I guess you could even go as far as assigning different images for your header, so that the Products tab would have a product image and the Contact’s tab would have a picture of the corporate offices.

I’m not worried about the CSS, because that could be done a number of different ways. I’ve been using CSS for about five years so I’m comfortable with it.

Where would one place the code to read the individual CSS files?

If this isn’t something that can be answered here, where would I look?

Demetrius

Profile
 
 
Posted: 24 July 2008 01:31 PM   [ Ignore ]   [ # 1 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1052
Joined  06-05-2007

You can do a number of things.  Two of which are use conditional statements where the container changes ids; something like:

<div ...  {if segment_2 ==""}id="one"{/if} {if segment_2=="about"}id="blue"{/if}>
the code
</div>

Or you can just create multiple templates with in that template group that correspond to the color you need.  Then code you content accordingly.

 Signature 

grantmx | designs - design | development | photography | consulting | ee pro profile

Profile
 
 
Posted: 25 July 2008 06:07 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  377
Joined  03-01-2006

Or what I often do:

<div{if segment_1==""} id="index"{if:else} id="{segment_1}"{/if}>

 Signature 

John Faulds - Tyssen Design | Member of EE Pro Network

Profile
 
 
   
 
 
‹‹ URLs odd      IE6 Turmoil ››
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64491 Total Logged-in Users: 61
Total Topics: 81032 Total Anonymous Users: 26
Total Replies: 436051 Total Guests: 262
Total Posts: 517083    
Members ( View Memberlist )