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: Table background opacity  (Read 7945 times)

0 Members and 1 Guest are viewing this topic.

claude258

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 150
    • Album photos Brière
Table background opacity
« on: May 10, 2009, 04:31:22 am »

I am trying to modify the theme Anabolica.

I was able to add a background image. Now I would like to give the maintable some background transparency. But the problem is that if the background has some transparency, the texts and images in the maintable have also the same transparency. (see attached image).

I would like to have (by exemple) a 50% transparency for the background and no transparency for the texts and images.
Exemple on this site:
http://www.bushpilotbiking.com/gallery/index.php

I used something like this:
Quote
.maintable {
background-color: #87CEFA;
border: 1px solid #D1D7DC;
color: #000000;
filter: alpha(Opacity=50, FinishOpacity=40, Style=1, StartX=100, StartY=0, FinishX=0, FinishY=0);
}

Any help will be appreciated.
Thanks.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Table background opacity
« Reply #1 on: May 10, 2009, 11:44:32 am »

Will only work in IE, as it is a proprietary MS-only nonsense. I wouldn't waste a second to look into that if I were you.
Apply non-transparent backgrounds then to the child containers of maintable (e.g. tableb).
Logged

claude258

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 150
    • Album photos Brière
Re: Table background opacity
« Reply #2 on: May 17, 2009, 06:26:26 pm »

Just to learn more about that I did some search and I found:
http://www.twinhelix.com/css/iepngfix/
and
http://www.daltonlp.com/view/217

I tried the second one (easiest). It is OK with me (IE7) but it slows the up and down scrolling on the pages. When I dont use this modification, the scrolling is OK. Did I use the code correctly? Here is how I have use it in CSS:
Code: [Select]
.maintable {
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='/images/75p_honeybleu.png');
}

.maintable[class] {
  background-image:url(images/75p_honeybleu.png);
}

Link to my site:www.claudebriere.net (try it with Anabolica theme)
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.