forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: led on July 12, 2006, 01:20:25 am

Title: Change colour in gallery description
Post by: led on July 12, 2006, 01:20:25 am
Hi

I have tryed to change the colour on the gallery descripsion in the Rainy Day theme. As default the text colour is black, but itīs almost impossible to read because the background is dark. I would like the text colour to be white.

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.larsemil.dk%2Ftemp%2Ffarve.jpg&hash=fc9d87120b07f881e12b21255786591f55a24601)

- I have tryed to change (one at a time) all the #000000 into #FFFFFF in the style.css

- I have also tryed this:

in style.css   :

.maintable {
        border: 1px solid #0E72A4;
        background-color: #FFFFFF;
        margin-top: 1px;
        margin-bottom: 1px;
        color: #FFFFFF;     <--- I added this

}

and also:

.tableb_compact {
        background: #EFEFEF ;
        padding-top: 2px;
        padding-right: 5px;
        padding-bottom: 2px;
        padding-left: 5px;
        color : #FFFFFF;     <--- I added this
}


Hope for some help  :)
Title: Re: Change colour in gallery description
Post by: Nibbler on July 12, 2006, 01:23:37 am
Add a new class for it in the template.html

Code: [Select]
            <td width="100%" style="background-image:url(themes/rainy_day/images/template_r3_c7.gif)" align="right">
              {GAL_DESCRIPTION}
            </td>
Title: Re: Change colour in gallery description
Post by: led on July 12, 2006, 01:30:59 am
I am pretty new to changing in template.html.

Can you write where in template.html I neeed to add that?
Title: Re: Change colour in gallery description
Post by: Nibbler on July 12, 2006, 01:32:48 am
Change

Code: [Select]
            <td width="100%" style="background-image:url(themes/rainy_day/images/template_r3_c7.gif)" align="right">
              {GAL_DESCRIPTION}
            </td>

to

Code: [Select]
            <td width="100%" class="gal_desc" style="background-image:url(themes/rainy_day/images/template_r3_c7.gif)" align="right">
              {GAL_DESCRIPTION}
            </td>

and add a new class to your stylesheet

Code: [Select]
.gal_desc {
    color: #FFFFFF;
}
Title: Re: Change colour in gallery description
Post by: led on July 12, 2006, 01:43:28 am
I changed in both files and uploaded them. The text is still black.

In style.css I added it in the end like this:

#vanity a {
        display:block;
        width:57px;
        height:20px;
        margin: 3px 20px;
}

.gal_desc {
    color: #000000;
}

#vanity img {border:0}

Correct?



Title: Re: Change colour in gallery description
Post by: Nibbler on July 12, 2006, 01:50:20 am
I made a typo in my code originally, use the code that is there now. (I always get black and white the wrong way around.  :-[)
Title: Re: Change colour in gallery description
Post by: led on July 12, 2006, 01:58:40 am
*GGG*
Itīs fine now. Strange I didnīt think about it when it was #000000 in the code. But its fine now. Thanks  8)

I am wondering: Is it very difficult to make the gallery description as a "box" which fits the size of the text written in gallery description?
So if I write a long description, lets say some info about a some new pictures, then the "box" is big, but if the description is short (few words) the the box is small.