It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming CSS Forum

Transparency with css, is it possable?

Transparency with css, is it possable?

Postby DDragon on Wed Aug 06, 2008 8:07 am

I was wondering if making an image (or a solid bar type) transparent with css is possible? If it is or anyone knows of any examples (or could point me in the right direction) i would be great full for the help.

DD
DDragon
50+ Club
 
Posts: 93
Joined: Wed Jun 20, 2007 12:51 am
Location: Australia

Postby flabbyrabbit on Wed Aug 06, 2008 1:24 pm

You could set the alpha of the image to 0 something like:
Code: Select all
   filter:alpha(opacity=0);
   -moz-opacity:0.0;
   opacity:0.0;
   -khtml-opacity:0.0;


Flabby Rabbit
Image
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby rangana on Thu Aug 07, 2008 12:24 am

@flabby, there's no need for -moz-opacity and -khtml-opacity as FF do understand opacity.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Postby Johnathan on Thu Aug 07, 2008 7:57 am

But is it ONLY FF that understands it? If it is then there would be a need for it if you wanted it to show in other browsers, right?
Johnathan
1000+ Club
 
Posts: 1207
Joined: Thu May 31, 2007 3:28 pm
Location: Belfast, Northen Ireland

Postby rangana on Thu Aug 07, 2008 8:54 am

IE and FF opacity varies. FF uses opacity, while IE uses filter

-moz-opacity is deprecated and should'nt be used. as well as -khtml-opacity.

Hope I'm making sense.
Last edited by rangana on Sat Aug 23, 2008 9:43 am, edited 1 time in total.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Postby DDragon on Thu Aug 07, 2008 10:36 am

Ok can you give an example of how each would be used at once so both IE and FF will see the same effect please?

DD

P.S: Thanks for the reply's.
DDragon
50+ Club
 
Posts: 93
Joined: Wed Jun 20, 2007 12:51 am
Location: Australia

Postby rangana on Thu Aug 07, 2008 10:41 am

User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Postby flabbyrabbit on Thu Aug 07, 2008 11:05 am

That was just the way I knew that worked.

Flabby Rabbit
Image
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Postby DDragon on Thu Aug 07, 2008 1:13 pm

Thanks Flabby/Rangana.

DD
DDragon
50+ Club
 
Posts: 93
Joined: Wed Jun 20, 2007 12:51 am
Location: Australia

Postby DDragon on Sat Aug 23, 2008 8:32 am

Just a follow up on this one...

Is there a way to get transparency to the effect of glass or something closer without the whitish background on the image?

DD
DDragon
50+ Club
 
Posts: 93
Joined: Wed Jun 20, 2007 12:51 am
Location: Australia

Next

Who is online

Users browsing this forum: No registered users and 0 guests