Change colour in gallery description Change colour in gallery description
 

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

Change colour in gallery description

Started by led, July 12, 2006, 01:20:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

led

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://coppermine-gallery.com/forum/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  :)

Nibbler

Add a new class for it in the template.html


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

led

I am pretty new to changing in template.html.

Can you write where in template.html I neeed to add that?

Nibbler

Change


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


to


            <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


.gal_desc {
    color: #FFFFFF;
}

led

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?




Nibbler

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.  :-[)

led

*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.