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 July 6th, 2003, 11:24 AM
niskel niskel is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 2 niskel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Wierd CSS filter problem

I seem to be having a problem with CSS filters. What I want to do is to have a line of text with a CSS filter (glow for example), this text is in a table that has a background color. The table itself would have another filter on it (alpha for example). The result should be glowing text on a semitransparent background. The problem I am having is that the background for the text area becomes completely transparent whenever a filter is applied to the table. Here is some code to show my problem:
Code:
<html>
  <body>
    <table width=200 height=200 style="filter: alpha(opacity=60);">
      <tr>
        <td bgcolor=#808080>
          <center><span style="height: 1; filter: glow(color=red, strength=3);">HELLO!</span></center>
        </td>
      </tr>
    </table>
  </body>
</html>

If anyone could tell me what I'm doing wrong or if there is a workaround i would be thankful.

Reply With Quote
  #2  
Old July 7th, 2003, 11:42 AM
icy_polecat's Avatar
icy_polecat icy_polecat is offline
Senior Polecat
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Jersey (the original version)
Posts: 210 icy_polecat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 57 sec
Reputation Power: 6
Send a message via Yahoo to icy_polecat
You can't apply background colors and the glow filter to the same element and as the span is an inline element you'll need to fudge your table to get it to work:

<html>
<body>
<table>
<tr>
<td bgcolor="#CCCCCC">
<table width=200 height=200 style="filter: alpha(opacity=60);">
<tr>
<td>
<center><span style="height: 1; filter: glow(color=red, strength=3); background-color: transparent;">HELLO!</span></center>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
__________________
Quidquid latine dictum sit, altum viditur.

http://www.XSet.co.uk

Reply With Quote
  #3  
Old July 7th, 2003, 05:23 PM
niskel niskel is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 2 niskel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Well, almost. The problem with this code is that the actual background color of the table must be transparent because it is on top of an image background. In your code the background of the table is not actually transparent, just the text.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Wierd CSS filter problem


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway