Reply
Semi transparent
Old 08-22-2004, 08:03 PM Semi transparent
pipers dragon's Avatar
Extreme Talker

Posts: 190
Is it possible to make a table's background semi transparent?
pipers dragon is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 08-23-2004, 01:44 AM
samson's Avatar
Registered User

Posts: 107
Location: Victoria, BC
yes.


try something like:

style="-moz-opacity:50% ; filter:Alpha(Opacity=50);"
samson is offline
Reply With Quote
View Public Profile Visit samson's homepage!
 
Old 08-23-2004, 01:47 AM
Christopher's Avatar
Iced Cap

Posts: 3,111
Location: Toronto, Ontario
Nice samson. I bet I'll use that one of these days

-moz is for Mozilla browsers, while the filter is for IE -- I guess any other browser is outta luck eh? I guess you could use a semi-transparent PNG combined with that CSS to make it work across as many browsers as possible.
Christopher is offline
Reply With Quote
View Public Profile Visit Christopher's homepage!
 
Old 08-23-2004, 03:14 AM
Novice Talker

Posts: 9
if you dont mind all the extra code and data involved very simply could you not just make an img file transparent and use it as the background for the table?
Phil Bodien is offline
Reply With Quote
View Public Profile
 
Old 08-23-2004, 04:11 AM
Christopher's Avatar
Iced Cap

Posts: 3,111
Location: Toronto, Ontario
He wants it semi-transparent. GIF doesn't support alpha-transparency (which is why you see those jagged edges sometimes), so you'd need to use PNG, and IE doesn't support transparent PNGs.

So I think samson's solution would be the easiest, unless you wanted to use that JS hack to get IE to correctly render transparent PNGs.
Christopher is offline
Reply With Quote
View Public Profile Visit Christopher's homepage!
 
Old 08-23-2004, 12:24 PM Sweet code samson, but...
collyer_1's Avatar
Extreme Talker

Posts: 169
Location: Southern Alberta, Canada
Could that code be adapted to work in a CSS file? So that all tables across my web-site can be semi-transparent.
collyer_1 is offline
Reply With Quote
View Public Profile Visit collyer_1's homepage!
 
Old 08-23-2004, 04:52 PM
pipers dragon's Avatar
Extreme Talker

Posts: 190
yea, What he said^_^!
pipers dragon is offline
Reply With Quote
View Public Profile
 
Old 08-26-2004, 12:29 AM
Unknown.

Posts: 1,693
Great code

For it to work in netscape you have to change it to a decimal...

-moz-opacity:0.5;

Quote:
Originally Posted by collyer_1
Could that code be adapted to work in a CSS file? So that all tables across my web-site can be semi-transparent.
You can add any css into a css file..
Just like this..

table {
-moz-opacity:0.5;
filter:Alpha(Opacity=50);
}


-James

Last edited by Dark-Skys99 : 08-26-2004 at 12:43 AM.
Dark-Skys99 is offline
Reply With Quote
View Public Profile
 
Old 09-08-2004, 08:19 AM
Phainein Terra's Avatar
Average Talker

Posts: 28
I attempted this for a particular div and all the text inside disappeared. What's the fix for that?
Phainein Terra is offline
Reply With Quote
View Public Profile
 
Old 09-21-2004, 12:09 AM
Novice Talker

Posts: 6
I tested the css. The backgwhole table is blurred since the opacity is low. However, the text is blurred too and the background image behind the table still doesnt appear in the 'transparent' table.
__________________
SocketMail :: cool
mar1skha is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Semi transparent
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15105 seconds with 12 queries