How to change the color of the border between categories? How to change the color of the border between categories?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

How to change the color of the border between categories?

Started by mtdoom, October 28, 2010, 10:19:12 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

mtdoom

I'm currently working on a coppermine gallery for one of my friends and I can't seem to figure out how to change the border between the categories.  I've attached a screen shot of what I'm talking about.  I've looked all through the style sheet but can't figure it out.  any help would be great.  Thanks.

Jeff Bailey

Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

mtdoom


Jeff Bailey

Change the background color of
.maintable {
background-color: #4A0000;
}


not sure if thats the final solution for you but it is the only way to change to color in that space.
You could probably reduce that space and add a border to the <td>.
If the answer works for you, no need to try and do that.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

mtdoom

I'm not talking about the red color of the background.  I'm talking about the divider between the categories

Test 1
----------------------   <- This line between the categories.
Test 2

Jeff Bailey

Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

mtdoom

Oh my bad.   I should have tried that before I posted again.     Sorry about that.  Thanks for the help.

Jeff Bailey

no problem.
please resolve your thread. http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631

the other way I was talking about incase you were wondering is

add

/******************************************************************************
** Section <<<starttable>>> - START
******************************************************************************/
// Function to start a 'standard' table
function starttable($width = '-1', $title = '', $title_colspan = '1', $zebra_class = '', $return = false)
{
    global $CONFIG;

    if ($width == '-1') $width = $CONFIG['picture_table_width'];
    if ($width == '100%') $width = $CONFIG['main_table_width'];
    $text = <<<EOT

<!-- Start standard table -->
<table align="center" width="$width" cellspacing="0" cellpadding="0" class="maintable $zebra_class">

EOT;
    if ($title) {
        $text .= <<<EOT
        <tr>
                <td class="tableh1" colspan="$title_colspan">$title</td>
        </tr>

EOT;
    }
    if (!$return) {
        echo $text;
    } else {
        return $text;
    }
}
/******************************************************************************
** Section <<<starttable>>> - END
******************************************************************************/

to your custom themes theme/theme.php
before the closing
?>

then add

.tableh1 {
border: 1px solid #000000;
}

to your custom themes theme/style.css

untested
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford