Help - Search - Members - Calendar
Full Version: Transperant
Zymic Webmaster Forums > Web Design & Development > Client Side Scripting > HTML and CSS
Shanmukarthik
hi every one,


can any one tell me how to do transperant background using CSS?



Karthik. R
rolleyes.gif
Shanmukarthik
Hi Tom,

Thanks for your reply... Is it enough by setting this style. Some body is saying that we have to set opacity property. ? Isn't it?




Karthik. R
MrTouz
I think opacity is if you want to darken the actual background, if you want it transparent than you do not need to set a value to opacity, it'll be considered 0 i guess smile.gif
tomlkier
another way is to set a transparent .PNG image or similar as the background repeating. i find this is easier for setting opacity and the image doesnt have to be large, it allows for a slight tint too smile.gif.
Jetteh22
I find it easier to just add the
CODE
style="background-color: transparent;"

to whatever it is you're trying to make transparent.. But like Tom said - Most objects are already transparent

THe only thing i've ever had to make transparent, that I can remember, are I-Frames if i want them to have the same background as their parent-page.
MrTouz
QUOTE
another way is to set a transparent .PNG image


i think IE sucks with transparent PNG's... you need to add some javascript to make it work both in IE and FF...

But i admit, transparent png is pretty cool !
tomlkier
ie works fine for me with transparent png's .. and i prefer it to that gay jscript and active x warning that comes up if u try to use opacity
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.