[Solved]: Category background color [Solved]: Category background color
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Solved]: Category background color

Started by ArturO, August 11, 2004, 03:57:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ArturO

I'm trying to change the background color of the Category-table.
I used the styleguide to find out where i have to adjust changes in the css file to reflect my choices.
But all i found is the table tableb in the styleguide http://coppermine.sourceforge.net/demo/index.php?highlight=tableb
But this is not what im looking for.
I want not the whole thing to be one color.
I want only the table with the Name and Description to be different from the other background color.
maybe the beackground/text-color of the numbers of ALBUMS and FILES could be changed too.
It is very hard for users to divide between the different albums of the different categories.

I added a edited screenshot to facilitate understanding of my problem:
I only want the Blue Area to be different from the rest:
Thankful : ArturO

Casper

Ok, try this,

Open your theme/style.css, and find;

.tableb {
       background: #EFEFEF ;
       padding-top: 3px;
       padding-right: 10px;
       padding-bottom: 3px;
       padding-left: 10px;
}


Now create a copy of this, then edit it to call it tableb1, and change the colour code to that you want.  Paste it immediately under the other code.

Now open your theme theme.php, and find;

<!-- BEGIN catrow_noalb -->
       <tr>
               <td class="tableb" colspan="3"><table border="0" ><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
       </tr>
<!-- END catrow_noalb -->
<!-- BEGIN catrow -->
       <tr>
               <td class="tableb"><table border="0"><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
               <td class="tableb" align="center">{ALB_COUNT}</td>
               <td class="tableb" align="center">{PIC_COUNT}</td>
       </tr>
    <!--if (isset(CAT_ALBUMS)){-->
         <tr>
           <td class="tableb" colspan=3>{CAT_ALBUMS}</td>
     </tr><!--};-->
<!-- END catrow -->


Now change that to this;

<!-- BEGIN catrow_noalb -->
       <tr>
               <td class="tableb1" colspan="3"><table border="0" ><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
       </tr>
<!-- END catrow_noalb -->
<!-- BEGIN catrow -->
       <tr>
               <td class="tableb1"><table border="0"><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
               <td class="tableb1" align="center">{ALB_COUNT}</td>
               <td class="tableb1" align="center">{PIC_COUNT}</td>
       </tr>
    <!--if (isset(CAT_ALBUMS)){-->
         <tr>
           <td class="tableb" colspan=3>{CAT_ALBUMS}</td>
     </tr><!--};-->
<!-- END catrow -->
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

ArturO

Thank you very much this really WORKS.
That's what i call support :D