Preserved Topic: Transparency in HTML: Is it possible? |
|
---|---|
Author | Thread |
Obsessive-Compulsive (I) Inmate From: Kintuky |
posted 06-23-2000 18:14
Is it possible to alter the transparency of say, a table, a GIF, or any type of object in a HTML document? In case an example is needed, I mean take a table with a white background and make it so that the background image or whatnot is partially visible through the table. Yeah. =) |
Paranoid (IV) Mad Scientist From: Inside THE BOX |
posted 06-23-2000 18:26 |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
posted 06-23-2000 20:51
You could also make a 4pxl x 4pxl transparent gif for the background image. |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
posted 06-23-2000 20:53
My idea to use text to display a box didn't work right. Hopefully you got the gist of what I was talking about. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 06-23-2000 22:04
Boudga, thats a good trick, does it work pretty well? |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 06-23-2000 22:23
There are two ways to create true transparency: One only works in Internet Explorer, and uses style sheets. In the style tag for a div container, say "filter:alpha(opacity=50%);". That should make it 50% transparent. (I may have the wrong syntax there, come back to me if it doesn't work.) Unfortunately, that only works in IE. The other way to make transparent images is with the .png format, which supports partial transparency; I don't know how well Photoshop supports this. Unfortunately, this is not widely supported yet, and every browser claims that they do or will support it soon, except for Internet Explorer for Windows. (IE for macs *will* support png transparency). |
Obsessive-Compulsive (I) Inmate From: Kintuky |
posted 06-23-2000 23:50
Nevermind, guys! I got it! Thanks for all the help! |
Maniac (V) Mad Scientist From: New California |
posted 06-25-2000 09:42
I'm coming in here a bit late but you can achieve a pseudo transparency effect in plain old HTML. You can create a dithered image in Photoshop and then save it out as a transparent gif. Once you have that you can place that image on a DIV tag and position it over anything you want, and it looks transparent. I have played around with this method on these two pages: |