>>  Site Map >>  Forums >>  Themes

Forum module - topics in forum:



Themes - Theme discussion only, Have a theme you made wanna share it. you can post a link to it here or ask questions on making themes and theme issues.



css style

I was wondering.....

Could the css stylesheet be coded to display differently for each Topics posted?

I am currently putting together a site with different teams, and would like the Topics to display the colors accordingly to each teams colors...

Is that possible?

If so, could you display the coding to be added to the themes style sheet?

Great site here and very helpful!

Thanks!






Sorry no this can't be done, due to the fact that there can't only be one css varible for a background color. Lets say your table code for the background color looks something like this:
Code: :
<table width="100%"  border="0" cellspacing="3" cellpadding="3">
  <tr>
    <td class="storytitle">&nbsp;</td>
  </tr>
  <tr>
    <td class="storybox">&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>

Take notice there are 2 css classes here, storytitle and storybox.
Each class = 1 set of css variables or commands. Lets look at storytitle for a moment:
Code: :
.storytitle  {
BACKGROUND-COLOR: #000000;
COLOR: #FFFFFF;
FONT-SIZE: 13px;
FONT-WEIGHT: bold;
FONT-FAMILY: Verdana, Helvetica;
TEXT-DECORATION: none
}

As you can see the first variable is set to #000000 which would be black. In the case of the particular theme this code was lifted from black would match the background color of the rest of the theme.

Now lets look at the storybox variable:
Code: :
.storybox  {
BACKGROUND-COLOR: #000000;
COLOR: #FFFFFF;
FONT-SIZE: 11px;
FONT-WEIGHT: bold;
FONT-FAMILY: Verdana, Helvetica;
TEXT-DECORATION: none
}

Remember both of these variable are for 1 story box and each and every story box. Notice a trend here? Yes both variables use the very same background color. Meaning in this case it is an extra command and could have been left out. The thing is this you can ONLY use a command 1 time per variable and therefore you can't have multiple background colors based on topics.
There are ways to do this with javascript in HTML but sorry it can't be done with a nuke theme. Even one that uses HTML at it's core.




Thanks Jae!

I'm learning php and css and its a long slow process teaching oneself...

Its great to have someone to throw this stuff at and get solid answers....

Thanks again!




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS