Forum Moderators: not2easy

Message Too Old, No Replies

Can I make an image transparent?

         

duderdude2

7:37 pm on Mar 8, 2005 (gmt 0)

10+ Year Member



Can I make an image partially transparent with CSS? If so, is it supported by most browsers?

Thanks!

bahamutz340

7:49 pm on Mar 8, 2005 (gmt 0)

10+ Year Member



In short, no

Not purely with CSS involves javascript and some odd directx script stuff and the ways to accomplish it are ugly and dont work with most browsers or require different code dependant upon which browser you are using.

duderdude2

7:54 pm on Mar 8, 2005 (gmt 0)

10+ Year Member



Ok, thanks.

How about this (two questions in one):

Can I make a text box in CSS (I forget what they're called) and give it a colored background? If so, can I make that background color transparent?

DrDoc

8:00 pm on Mar 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yeah -- don't give it a background color and it is transparent ;)
Or, for that matter:

background: transparent;

duderdude2

8:04 pm on Mar 8, 2005 (gmt 0)

10+ Year Member



^ Thanks, but what if I wanted to make it, say, 50% transparent, could I do that?

bahamutz340

8:53 pm on Mar 8, 2005 (gmt 0)

10+ Year Member



no partial transparency in CSS, I sure wish there was,
I would make some slick looking pages.

duderdude2

8:58 pm on Mar 8, 2005 (gmt 0)

10+ Year Member



"I would make some slick looking pages."

Yeah, tell me about it. Well, thanks anyway!