Topic: Background Opacity at 25% Font at 100% (Page 1 of 1) |
|
---|---|
Neurotic (0) Inmate Newly admitted From: |
posted 10-16-2004 15:51
I have been reading myself silly trough different forums but didn't quite find a solution yet. I have started an internet Blog and I would like to make some posts with a 25% opacity layer. Only problem is that this Background layer affects my font. quote:
|
Maniac (V) Mad Scientist From: :morF |
posted 10-18-2004 09:12
try setting the fonts with style="filter:alpha(opacity=100)" if that's what is working for setting the backgorund opacity. |
Bipolar (III) Inmate From: Umeå, Sweden |
posted 10-18-2004 16:12
Opacities (-moz-opacity in earlier moz versions, -khtml-opacity in saf1.1, opacity in current saf and moz versions, filter:alpha(opacity:#) in iew) are set on a whole element, not just the background. Opacities are nesting but not inheriting, meaning that an element with 50% opacity nested within another element with 50% opacity will end up being 25% opacity. According to the relevant CSS specs, opacities are normalised to be within the 0%-100% range, thus you can never get any part of an element to have a higher opacity than the base opacity of it's ancestors. If you want to use partial opacities for only backgrounds, there are today three choices: use CSS3 RGBA colours for the background (saf1.2 only), use alpha channel PNG for background (moz, op, saf, iem but not iew), or use a gif where you mix transparent and non-transparent pixels so that it looks like a partial transparency. There is a trick that might work for getting alpha channel PNG to work in ie5.5w and ie6.0w, that relies on using the AlphaImageLoader filter to generate the proper background opacity, though. |
Nervous Wreck (II) Inmate From: Perth, Western Austrlia |
posted 10-20-2004 06:50
a vairation on this is there a way to to partially fill a div block with white? |
Obsessive-Compulsive (I) Inmate From: |
posted 10-21-2004 00:54
Thanks for the replies ! |
Obsessive-Compulsive (I) Inmate From: |
posted 10-23-2004 16:50
The thing is, I want to try to make a 'post' in a personal weblog of mine with a transparent background and text staying in a 100 % opacity. I was trying to combine HTML with CSS tags to find a way to make it possible. |
Neurotic (0) Inmate Newly admitted From: |
posted 09-15-2006 08:57
I've been trying to do this same thing, and someone was able to show me how to do it in IE. code: <table height="200" width="200" bgcolor="#FF0000" style="filter: alpha (opacity=50);"> <tr> <td><span style="position: relative;"><b>Hello There</b></td> </tr> </table>
|
Maniac (V) Mad Librarian From: Seoul, Korea |
posted 09-15-2006 11:42
As liorean pointed out above, the different browsers have different ways of implementing opacity (sigh). filter:alpha(opacity) in proprietary IE. |
Paranoid (IV) Inmate From: Florida |
posted 09-15-2006 16:20 |
Neurotic (0) Inmate Newly admitted From: |
posted 11-14-2008 15:31
Put the element containing the text outside the parent container (e.g. right below) and then use relative/absolute positioning to get it to appear on top of the background. This way the text does not "inherit" the opacity of the background. |
Paranoid (IV) Inmate From: Florida |
posted 11-15-2008 01:38
quote: http://reisio.com/temp/punkid/ actually |