CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 23rd, 2003, 12:48 AM
_jb_ _jb_ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 44 _jb_ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 8 sec
Reputation Power: 6
Send a message via ICQ to _jb_ Send a message via AIM to _jb_
css alpha troubles

is there any way to have the background of a table be at 50% opacity and the text be at 100% opacity?

i've been playing with this code:

style="filter:Alpha(Opacity=xx)" ...where xx is 50 or 100

and have placed it within the <table> tag and also within a <font> tag, but nothing seems to work. the font wants to be the same opacity as the table.

is there any way around this?

on a possible workaround, i've tried using semi-transparent PNG file as the background of the table, and that didn't work. i couldn't get the PNG file to do semi-transparent. it wanted to do a diffusion transparency, which looked like @ss.

Reply With Quote
  #2  
Old February 23rd, 2003, 09:57 AM
jkd jkd is offline
CF sMod
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Maine, USA (a.k.a. Boonies)
Posts: 242 jkd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 43 sec
Reputation Power: 9
Send a message via ICQ to jkd Send a message via AIM to jkd Send a message via Yahoo to jkd
IE/Win doesn't support the alpha chanel in PNG's (just binary transparency). Every other modern browser does.
__________________
Jason Contact Me
Super moderator @ CodingForums

Reply With Quote
  #3  
Old February 23rd, 2003, 10:14 AM
_jb_ _jb_ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 44 _jb_ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 8 sec
Reputation Power: 6
Send a message via ICQ to _jb_ Send a message via AIM to _jb_
ok, that answers one questions, but what about having the two different opacities for table background and text?

Reply With Quote
  #4  
Old February 23rd, 2003, 02:09 PM
jkd jkd is offline
CF sMod
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Maine, USA (a.k.a. Boonies)
Posts: 242 jkd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 43 sec
Reputation Power: 9
Send a message via ICQ to jkd Send a message via AIM to jkd Send a message via Yahoo to jkd
<div style="-moz-opacity: 0.5;">
<span style="-moz-opacity: 1;">opaque text on a translucent background in Gecko</span>
</div>

Reply With Quote
  #5  
Old February 23rd, 2003, 02:17 PM
_jb_ _jb_ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 44 _jb_ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 8 sec
Reputation Power: 6
Send a message via ICQ to _jb_ Send a message via AIM to _jb_
what about ie?

Reply With Quote
  #6  
Old February 23rd, 2003, 03:01 PM
jkd jkd is offline
CF sMod
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Maine, USA (a.k.a. Boonies)
Posts: 242 jkd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 43 sec
Reputation Power: 9
Send a message via ICQ to jkd Send a message via AIM to jkd Send a message via Yahoo to jkd
Same idea, but with filter crap instead of -moz-opacity. Or you can use both properties, and make it crossbrowser.

Reply With Quote
  #7  
Old February 23rd, 2003, 07:05 PM
_jb_ _jb_ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 44 _jb_ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 8 sec
Reputation Power: 6
Send a message via ICQ to _jb_ Send a message via AIM to _jb_
this is a testing page i'm trying to use this on:

http://www.option5.net/testing

the box on the right is what i want it to look like, however, this is achieved using two absolute-positioned div layers, one using an opacity of 100 for the text and the other underneath it for the background at an opacity of 70. the box on the left uses relative positioning, which is more what i need it for, as this page will be updated often, and it would be better to be able to put in a relative position, and all other div layers following it would move down the page accordingly.

i haven't tested this in netscape or any other browser, just ie.

Reply With Quote
  #8  
Old February 24th, 2003, 01:57 PM
Rob B Rob B is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Ottawa
Posts: 23 Rob B User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
In Opera 7.0 and in Netscape

Your left box works doesn't have the transparency effect
The right hand box doesn't have its grey background or transparency effect on the images.

Reply With Quote
  #9  
Old February 24th, 2003, 06:00 PM
_jb_ _jb_ is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 44 _jb_ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 8 sec
Reputation Power: 6
Send a message via ICQ to _jb_ Send a message via AIM to _jb_
this i know for i haven't checked in netscape nor opera nor anything but ie. i want it to work in ie first and then i'll get it to work in other browsers.

Reply With Quote
  #10  
Old July 8th, 2003, 06:34 AM
++butler++ ++butler++ is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: england
Posts: 3 ++butler++ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Lightbulb css

I've been having the same problems but i want the table to be semi-transparent and the content to be normal.


Try doing something like this - - -

...
<td style="filter: alpha(style=0, opacity=50)">testin'</td>
...


hope this works!

Reply With Quote
  #11  
Old July 10th, 2003, 07:47 AM
rhedman rhedman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 1 rhedman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Um...

Internet Explorer DOES support png alpha if you are ready to go the long way around.... Read more about it here: URL

Reply With Quote
  #12  
Old July 10th, 2003, 11:16 AM
jkd jkd is offline
CF sMod
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Maine, USA (a.k.a. Boonies)
Posts: 242 jkd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 43 sec
Reputation Power: 9
Send a message via ICQ to jkd Send a message via AIM to jkd Send a message via Yahoo to jkd
Re: Um...

Quote:
Originally posted by rhedman
Internet Explorer DOES support png alpha if you are ready to go the long way around.... Read more about it here: http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html


No. That's not supporting the alpha png channel. That's using native DirectX calls in a webpage through an ugly hack which is usually useless, as using translucent PNGs in <img/> is rarely what you want to do with them.

Reply With Quote
  #13  
Old August 26th, 2003, 04:07 AM
macosxtiger macosxtiger is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: sweden
Posts: 1 macosxtiger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question alpha in Safari + Explorer (MAC)

well..
i tried the alpha with css on my site URL

and it worx fine in windows explorer.. but in Safari and Explorer on Macintosh i cannot see the neat alpha trick..
i wonder why?

any other CSS-designers with Mac.. is there a workaround?



mac OS X Tiger

Reply With Quote
  #14  
Old April 6th, 2004, 04:09 AM
schnuerbel schnuerbel is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 1 schnuerbel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Alpha in Safari

for safari use the RGBA (CSS2) specification:

Example:
background-color: rgba(153,255,153,0.7);

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css alpha troubles


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |