|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
transparency
i'm trying to get a transparent "background" image in a table cell, but have solid text (non-transparent) on top of that image. the problem is if i make the table cell transparent, everything i put into that cell becomes transparent as well. any ways around this without having a "fixed-position" layer?
|
|
#2
|
|||
|
|||
|
RE: transparency
place a <div> inside the <td> and set the style on the <div> to be non-transparent. It SHOULD work anyways ;)
|
|
#3
|
|||
|
|||
|
RE: transparency
doesn't seem to have any effect
|
|
#4
|
|||
|
|||
|
RE: transparency
What about using a transparent gif instead of a jpg file?
|
|
#5
|
|||
|
|||
|
RE: transparency
these are user jpeg's being stored and deleted "on-the-fly" so i can't really re-convert them to a new format. i just want the effect to make it display pretty
|
|
#6
|
|||
|
|||
|
RE: transparency
Hmm..I have found some other people complaining of this exact same thing on the newsgroups...no answer yet though...I am doing some testing and will let you know what I come up with....
Does this transparency work in any other browser besides IE? Doesn't in my mozilla.... |
|
#7
|
|||
|
|||
|
RE: transparency
the "alpha(opacity=50)" is supposed to be for IE and the "-moz-opacity:0.5" is supposed to be for NN6+ to my understanding. i'm not sure other than that
|
|
#8
|
|||
|
|||
|
RE: transparency
I'm not realy sure what you mean with "on the fly", but why not get php to convert the files to gif?
|
|
#9
|
|||
|
|||
|
RE: transparency
i don't really know how to answer this without getting into the guts of my code, which is a differant subject. my script works specifically with the jpeg format, it manipulates the image and then redisplays it (with intentions to be saved) - no other format will support the manipulation.
i don't think the gd library supports gifs anymore due to licensing issues anyway, but even if it did that approach won't work. by "on the fly" i mean that images are deleted almost immediately after they've been created. |
|
#10
|
|||
|
|||
|
RE: transparency
This works with an absolute-position...
[CODE] <head> <style type="text/css"> .test { position:absolute; left:0; top:0; z-index:-1 filter: alpha(opacity=50); -moz-opacity:0.5; } </style> </head> <body> <table><tr><td> <img class="test" src="PK.jpg" alt="" border="0"> <div>Test</div> </td></tr></table> </body> [CODE] |
|
#11
|
|||
|
|||
|
RE: transparency
Quote:
i already knew it could be done that way |
|
#12
|
|||
|
|||
|
RE: transparency
Sorry... Must have misunderstod you...
Still a codebaby, even if the info reads somthing else :-) |
|
#13
|
|||
|
|||
|
RE: transparency
notepad, are you using a plain background? if so, why not lighten/darken the image using the GD library rather than actually making it transparent?
omg that's a great idea thank you! you're welcome. |
|
#14
|
|||
|
|||
|
RE: transparency
even if you did respond two years later, lol
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > transparency |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|