FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

urgent-- alpha filter problem in CSS

 


alalex
I apply a this style to a table:
Code:
.table{
background-color:#CCCCCC;
border-left-width:0px;
border-color:#333333;
border-style:outset;
border-spacing:2px;
border-width:1px;
filter:progid:DXImageTransform.Microsoft.Alpha( Opacity=100, FinishOpacity=20, Style=2 StartX=0,  FinishX=100, StartY=0, FinishY=100);
}

And it correctly displays the alpha filter. But thenn, I want to insert another table into that one, and write text, but it applies the filter also to the text! Is there a way to make the text appear normal?
I tried applying this style to the text, but it didnt work:
Code:
.opacity_100{
filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100, Style=0);
}


Please help! Very Happy
Arno v. Lumig
CSS will apply the style it reads LAST. Is the css that makes the text visible AFTER the css that makes the table have an transparancy?

But I don't understand the code you're using, and I have the vague feeling that it would only work on windows computers, of maybe even on iexplore only...


Making something half-transparant is better with PNG images (you'll need some javascript to make it work in iexplore 6.0 and below though)


Goodluck,
Arno
b4r4t
Filters works only in Internet Explorer ... only on 5.5+, and ... they are only in Microsoft spec... W3C don't valid it and there is no such atribute like filter in css spec.

And bout Your problem - if You apply filter for table, then everything in this table will be filtered too.
Try to write text in <td><span>TEXT</span></td> and make a class for span whith opacity 100% ... but ... in my opinion ... don't use filters Smile

PS. for span use span.nameofclass {atributes} and for table td.nameofclass (maybe then browser will apply style only for tabble cells not for text in it)
alalex
ok, i will take out that filter. I didnt no it wasnt W3C accepted, and it actually looked cool! But it isnnt really important..
Thanks!
Very Happy
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.