Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Change colour in gallery description  (Read 2985 times)

0 Members and 1 Guest are viewing this topic.

led

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
    • Lars Emilīs online photoalbum
Change colour in gallery description
« 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  :)
« Last Edit: July 12, 2006, 05:03:24 am by GauGau »
Logged

Nibbler

  • Guest
Re: Change colour in gallery description
« Reply #1 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>
Logged

led

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
    • Lars Emilīs online photoalbum
Re: Change colour in gallery description
« Reply #2 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?
Logged

Nibbler

  • Guest
Re: Change colour in gallery description
« Reply #3 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;
}
Logged

led

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
    • Lars Emilīs online photoalbum
Re: Change colour in gallery description
« Reply #4 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?



Logged

Nibbler

  • Guest
Re: Change colour in gallery description
« Reply #5 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.  :-[)
Logged

led

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
    • Lars Emilīs online photoalbum
Re: Change colour in gallery description
« Reply #6 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 14 queries.