forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: mtdoom on October 28, 2010, 10:19:12 pm

Title: How to change the color of the border between categories?
Post by: mtdoom on October 28, 2010, 10:19:12 pm
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.
Title: Re: How to change the color of the border between categories?
Post by: Jeff Bailey on October 28, 2010, 10:30:32 pm
Please post a link so that we may better help you.
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616
Title: Re: How to change the color of the border between categories?
Post by: mtdoom on October 29, 2010, 12:37:51 am
Sorry about that I forgot to include the link
http://giggity.zzl.org/gallery (http://giggity.zzl.org/gallery)
Title: Re: How to change the color of the border between categories?
Post by: Jeff Bailey on October 29, 2010, 12:54:47 am
Change the background color of
Code: [Select]
.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.
Title: Re: How to change the color of the border between categories?
Post by: mtdoom on October 29, 2010, 01:02:15 am
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
Title: Re: How to change the color of the border between categories?
Post by: Jeff Bailey on October 29, 2010, 01:07:11 am
Try it and you'll see that's what I'm talking about.
Title: Re: How to change the color of the border between categories?
Post by: mtdoom on October 29, 2010, 01:12:30 am
Oh my bad.   I should have tried that before I posted again.     Sorry about that.  Thanks for the help.
Title: Re: How to change the color of the border between categories?
Post by: Jeff Bailey on October 29, 2010, 01:17:46 am
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
Code: [Select]
/******************************************************************************
** 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
Code: [Select]
?>
then add
Code: [Select]
.tableh1 {
border: 1px solid #000000;
}
to your custom themes theme/style.css

untested