CSS opacity statements seem to strip PNG opacity values. Any way to circumvent?

I noticed it's apparently impossible to make a PNG (with
various levels of
opacity) semi-transparent via the usual channels, listed
below :
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=75);
opacity: 0.75;
-moz-opacity: 0.75;
This trio of CSS statements did a pretty good job of covering
all the usual
bases when it came to making an image partially transparent.
However, as
mentioned above, it seems to force all of the pixels in the
PNG to be
exactly *that* transparent (in this case, 75%).
So if your PNG is a gradient that goes from 100% opaque to 0%
gracefully,
applying the above statements to it will cause it to appear
to become
opaque, as the alpha information is stripped and replaced
with "75%" across
the board.
My question is... is there a way for me to make a PNG image
-- one which has
various levels of opacity in it (like a gradient going from
opaque to
transparent) -- semi-transparent while retaining the
proportionate
individual alpha levels of each pixel?
In other words, if I want the PNG to be 75% opaque when shown
in a specific
situation (like a button that will become 100% opaque on
hover/mouseover),
while the more opaque pixels of the PNG remain more opaque
than the more
transparent ones.
Is this at all do-able?

"Michael Fesser" <[email protected]> wrote in message
news:[email protected]...
> .oO(Mike)
>
>>Good idea, although that would double the number of
images.
>
> Not necessarily. You can keep multiple images in the
same file and use
> different CSS background positions to show them. Ian
already suggested
> it, here are actual examples of that technique:
>
>
http://wellstyled.com/css-nopreload-rollovers.html
>
http://www.alistapart.com/articles/sprites/
>
> Micha
Granted, but the amount of data being transfered is the same
as if I'd
doubled the number of images.
All I'm looking to do, really, is have a PNG with a slight
shadow effect
(thus, various levels of opacity in the same image) display
in a 90% opaque
natural state, then switch to 100% opaque on mouseover.
For example :
a {
filter:alpha(opacity=90);
-moz-opacity:0.9;
-khtml-opacity: 0.9;
opacity: 0.9;
a:hover {
filter:alpha(opacity=100);
-moz-opacity:1;
-khtml-opacity: 1;
opacity: 1;
90% is just subtle enough to not make the image pale, but
stil give you a
"light up" effect on mouseover.
In Firefox, no problem. CSS's 90% opacity attribute will make
each pixel in
the PNG *proportionately* more transparent (by 10%). In other
words, opaque
pixels become a bit transparent, while already-transparent
pixels become
even MORE transparent. So to the viewer, the entire image
simply became a
bit more transparent.
But in IE -- even IE7 -- the behavior is completely
different. IE will set
ALL the pixels in the PNG (regardless of how transparent or
opaque they are)
to the value set by the attribute. In this case, all pixels
become exactly
90% opaque, equally, across the board, as if the PNG was a
flat opaque
document to begin with (which it wasn't... it had various
levels of opacity
within the same image).
This means that you can't use PNG to do a traditional a:hover
opacity
effect, unless the PNG had no transparency in it to begin
with (in which
case you'd probably use JPG instead).
I've scoured the web for a possible hack around this
limitation, but not
only did I not find one, I didn't find a single mention of
this behavior in
*any* of the PNG transparency primers, tutorials and blogs
that I've found.
If I could at least find someone who so much as NOTICED this
problem before,
I'd feel a little less crazy. :-)

Similar Messages

  • When i ask Siri the weather it does not give it to my unless i say a state or where i live, is there any way to fix this ? please help me

    Does anyone know hy it does this or how to fix this ?

    Thanks alot for your help but sadlly i have done this multiple times even turning siri off and back on and it seems to not work unless i say ''Whats the weather in Sydney''

  • Why is PNG opacity corrupt in CS6?

    My platform is Win7-64. PS-64 is just completely buggy so I use PS-32 to fill a gray #999 rectangle and give it 90% opacity for a DW navigation feature in development (Canada and UK). When I place the transparent PNG in the DW CSS3 code, the HTML5 browser output applies the opacity to all menu (visible navigation) text. Code is never changed, but something in the CS6 background is causing the unwanted opacity transfer. When a CSS3 id or class selector is provided an "opacity" value of say 0.9, then all text should be 90% opaque. But on my DW page there is no code to style opacity.
    I have not applied any "opacity" elements or properties. There is no way to turn the browser display of opacity off using code. The opacity corruption displays in all browsers. Worse yet, repeated edits of the PNG to remove the opacity in PS increase the opacity in DW. After several PS edits of a PNG with 90% opacity, then what appears in browsers looks more like 30% or 20% opacity. The PS workspace is poor at viewing opacity on a Pro-Art display, but I think PS is not displaying correctly either. Accompanying the 20-30% browser corruption, in one afternoon PS seems to display something like 60-80% opacity even though fresh PNG file edits are all set to 90% opacity: that is, PS display is corrupting like the browsers' display, but slowly.
    Why is DW CS6 applying opacity from PS CS6 without any user input of CSS3 opacity code?
    Message was edited by: Mark.Stewart to clarify that opacity is NOT being coded into web pages: somehow browsers Chrome and IE both are involved in the PS-DW opacity issue. -- 130207-2211

    Repeated edits of the PNG to remove the opacity in PS increase the opacity in DW.At the time that this CS6 opacity corruption issue occurs, Creative Cloud's Adobe Application Manager has setup the following programs.
    Adobe Acrobat Distiller XI, Adobe Acrobat XI Pro, Adobe AIR Updater, Adobe Application Manager, Adobe Audition CS6, Adobe Bridge CS6 (64bit), Adobe Bridge CS6, Adobe Creative Cloud Connection, Adobe Dreamweaver CS6, Adobe ExtendScript Toolkit CS6, Adobe Extension Manager CS6, Adobe Fireworks CS6, Adobe FormsCentral, Adobe Help, Adobe Photoshop CS6 (64 Bit), Adobe Photoshop CS6, Adobe Photoshop Lightroom 4.3 64-bit, Adobe Widget Browser, Lightroom 4.3 64-bit.
    Adobe AIR Updater is having problems trying to run from popups whenever Adobe Help Manager is running.
    http://www.w3schools.com/cssref/tryit.asp?filename=trycss3_opacity
    email to: [email protected] (DW transfers background png opcaity to foreground text)

  • My select select statement seems not to work...

    Hello experts,
    I am having trouble with my select statement below. Here is what I need to do:
    1. loop at itab it_equz.
    2. get single asset number(ANLNR) and description(SHTXT) from table ITOB where EQUNR =_equz-equnr.
    3. get single asset number(ANLN1), asset subclass(ANLN2 and subnumber(ORD42 from table ANLA where its asset(anln1) equals to the asset fetched by ITOB. (no. 2 step) and DEAKT eq '00000000'
    4. Now, I would get all fields(select single) in table ANLC where ANLN1 equals to asset fetched by ANLA and ANLN2 equals to ANLN2 fetched by ANLA and AFABE eq '01'.
    5.endloop.
    Now, the problem is that I can't seem to get the right values in table ANLC. Now, my boss said that the values that I must get in ANLC must not be deactivated. So I did that by getting the required fields(no 3 step) in table ANLA where its DEAKT is equal to '00000000'.
    Now, my select statement for ANLC seems not to work properly since I have the proper where conditions. Anyway, below is my select statement that I did:
    LOOP AT it_equz.  "no 1 step
    SELECT SINGLE anlnr shtxt FROM itob   "no 2 step
              INTO (it_itob-anlnr, it_itob-shtxt)
              WHERE equnr = it_equz_dum1-hequi.
    MOVE it_itob-anlnr TO it_finaltab-asset_dum.
                MOVE it_itob-anlnr TO it_finaltab-asset.
                MOVE it_itob-shtxt TO it_finaltab-description.
    SELECT SINGLE bukrs anln1 anln2 ord42   "no 3 step
                FROM anla                                  
                INTO (it_anla-bukrs, it_anla-anln1, it_anla-anln2,
                      it_anla-ord42)
                WHERE anln1 = it_finaltab-asset
                  AND bukrs IN r_iwerk
                  AND deakt = '00000000'.
    MOVE it_anla-ord42 TO it_finaltab-asset_sub.
                  WRITE it_finaltab-asset TO v_asset.
                  CONCATENATE v_asset '-' it_anla-anln2
                  INTO it_finaltab-asset_subnum.
    SELECT SINGLE bukrs anln1 gjahr afabe knafa kansw  "no 4 step
                              answl kaafa nafal aafav aafag
                              nafap aafap nafav nafag FROM anlc
                          INTO (it_anlc-bukrs, it_anlc-anln1, it_anlc-gjahr,
                                it_anlc-afabe, it_anlc-knafa, it_anlc-kansw,
                               it_anlc-answl, it_anlc-kaafa, it_anlc-nafal,
                               it_anlc-aafav, it_anlc-aafag, it_anlc-nafap,
                               it_anlc-aafap, it_anlc-nafav, it_anlc-nafag)
                            WHERE anln1 EQ it_finaltab-asset
                              AND anln2 EQ it_anla-anln2
                              AND bukrs EQ it_anla-bukrs
                              AND afabe EQ '01'.
    it_finaltab-accq_cost = it_anlc-kansw + it_anlc-answl.
                IF p_posdep = 'X'.
                  it_finaltab-acc_dep = it_anlc-knafa +
                                        it_anlc-nafav +
                                        it_anlc-nafag +
                                        it_anlc-kaafa +
                                        it_anlc-aafav +
                                        it_anlc-aafag.
                ELSE.
                  it_finaltab-acc_dep = it_anlc-knafa +
                                        it_anlc-nafav +
                                        it_anlc-nafag +
                                        it_anlc-kaafa +
                                        it_anlc-aafav +
                                        it_anlc-aafag +
                                        it_anlc-nafap +
                                        it_anlc-aafap.
                ENDIF.
    APPEND it_finaltab. CLEAR it_finaltab.
              APPEND it_equz_dum2. CLEAR it_equz_dum2.
              CLEAR it_itob. CLEAR it_anla. CLEAR it_anlc.
    endloop.

    Hi,
      Please avoid selection in loop. it will lead to major performance issue.
    avoid move statements ; instead use assignment.
    1st :- select the entire data into internal table
    eg:-
    SELECT anlnr shtxt FROM itob
    INTO table it_itob
    for all entries in it_equz
    WHERE equnr = it_equz-hequi.
    1st select
    2nd select.
    2nd :- now loop on ur internal table to get the desired result.
    it is good to work with internal table rather than select statements in loop.
    Regards

  • Is there any  way to Mask the Name when  a select statement is issued?

    Dear all,
    Is there any way to mask the name .. i mean if User issue a select statement in a customer table the real name should come like ' ABCXXXDEFXXCFXX'... Which is not the actual name?
    e.g if Name: CHIEV SONG MEE
    If user issue a statment select * from customers;
    The Result Should come something Like this:
    Name
    CHXXV SXNG MXX
    Thank You

    user3029023 wrote:
    but it seems there is no option in oracle it self which can be used as there they are saying to get a data masking software which we can't due to some internal issues....I would not say that. How one implements masking depends entirely on the requirements that need to be met.
    For example, schema A owns all the tables. Schema B can be created as a "trusted" schema - in other words, schema A trusts schema B and allows it full access (with grants) to its tables. Schema B implements data masking as views. For each table in A, a view exists in B that implements the required masking. B can now grant select access on these views to user C. User C will see the same data object names in B as it would have if it used A - only, by using the B data objects it uses masked data objects and not the original source data objects.
    Another example - schema Dev is to have all the data objects of schema Prod, but masked where needed. One can use CTAS (Create Table As Select) to create the required tables in Dev with masked values where relevant. This Dev schema can be "refreshed" on weekends by dropping all tables and getting a new fresh copy of production data and masking it - ready for the next week's development cycle.
    If the application use is for example APEX, then instead of coding SQL directly as reporting regions to display, a function is used instead. APEX supports reporting regions where it calls a function and this function provides the APEX run-time with the SQL to execute and contents to render. It is easy to use this approach to implement logic in functions that masked column data depending on who the APEX user is, the security/role attributes of the user, and so on.
    No there is not a single "+mask this column!+" feature in Oracle.. but that does not mean that such a feature is not supported and cannot be implemented. Oracle has a very comprehensive and rich set of tools - more so than most (if not all) other RDBMS products.
    It is up to the architect/designer/developer to use this toolkit in creating a system that meets the specific requirements at hand.

  • Is there any way to archive correspondence customer statements in SAP

    Hi,
    1) Is there a way to archive customer statements for correspondence that SAP has provided? If not, do you know of any way that companies use to archive customer statements?
    2) Business Address Services -- Does it fall under the realm of functional or technical teams? The reason I ask is there are some customers that need to get their statements by mail and some by fax and some with both by fax and mail. I found out that this can be done by BAS. But it all looks too technical to me.
    3) Can customer statements only be generated using SAP script or are you sure you can use SMARTFORMS?
    Your replies are stongly appreciated and points will be rewarded.
    Thanks,
    Lakshman.

    Hi Laksman,
    Welcome to SDN !!!
    Well for your answer.
    1) to my knowledge most of the company save customer statement externally, either through paper or as pdf files.but you can generate customer statement as describe by SURE above.
    2) Well Business address services fall under functional even through it seems too technical.   But you need help to techinical team to execute the same. as in the end configuration needs to be done for output types to decide if its printed or send through Fax. etc.
    3) Smartforms can also be used but SAP script is the most commonly used.
    Hope this helps.
    Please assign points as way to say thanks
    3)

  • IPhoto deletes city/state/country geotags! Any way to recover?

    Hi,
    It seems like iPhoto deletes some geotagging-specific EXIF tags when creating a "modified" version of a picture! (Steps to reproduce appear below.)
    Is there any way to go through and restore the "original version's" geography-related EXIF tags to the "modified version" for all photos in my library? (For example, does Automator have access to the EXIF tags?)
    Thanks!
    To reproduce the bug:
    1. Take a photograph. Use a 3rd party program -- I use HoudahGeo -- to add geographic information to the photo's EXIF tags. Insert data into the City, Province, and Country fields.
    2. In Finder, click on the photo and hit command-i. Note that the city, province, and country data appears in the "More Info" panel of the "Get Info" window.
    3. Import the file into iPhoto.
    4. Note that dragging the file out of iPhoto and then repeating step 2 yields the same result, as it should.
    5. Enhance or otherwise edit the photo in iPhoto.
    6. Note that if you repeat step 4 -- i.e. drag the file out of iPhoto and then hit command-i --, the city, province, and country data is missing.

    Hi,
    I'm not sure that I fully understand the difference between these two types of metadata.
    If I open the original picture in Graphic Converter and view the EXIFTool readout, I see these tags repeated three times:
    -Once under the "IPTC" heading
    -Once under the "XMP-iptcExt" heading
    -Once under the "XMP-photoshop" heading
    If I open the "modified" version, the city, province, and state tags are missing from all three places.
    (I'm assuming that since it's EXIFTool telling me this data that these are indeed EXIF tags, but hopefully, the above should clarify what I'm talking about.)
    -Mike

  • Every time I try to install itunes on my PC I get the following message, and I can't seem to find a solution. Any help out there?? "There is a problem with this Windows Installer package. A program required for this install to complete could not be run."

    Every time I try to install itunes on my PC I get the following message, and I can't seem to find a solution. Any help out there?? "There is a problem with this Windows Installer package. A program required for this install to complete could not be run."

    Try the following user tip:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • I just bought a new Mac, and i cant seem to update to Mountain Lion, any idea's as to why?

    i just bought a new Mac, and i cant seem to update to Mountain Lion, any idea's as to why? also i can not seem to download pages from the app store, any idea's on why, please help!!

    You need to describe more clearly what you are trying to do and how it is failing.
    Was your mac new, or just new to you? What OS did it come with? Lion? Snow Leopard?
    Have you already bought Mountain Lion? If so, are you using the same Apple ID that you used for your purchase?
    What are you seeing in the App Store? Come to think of it, are in the MAC App Store? (not to be confused with the iTunes App Store!).
    If you give answers to these questions we may be able to help!

  • ITunes shows that there are no songs on my iphone but there are 274 songs there. The data storage shows up as "other" on iTunes. I just want to clear the music on my phone but  I can't seem to do so. Is there any way to do this?

    iTunes shows that there are no songs on my iphone but there are 274 songs there. The data storage shows up as "other" on iTunes. I just want to clear the music on my phone but  I can't seem to do so. Is there any way to do this? You used to be able to swipe and delete a song straight from your phone but I can't seem to do that anymore.

    That is stealing.

  • Hi am having problems with iTunes,I have all my music on my 4s but I bought the iPhone 5 today.us there any way that I can transfer music over to my new phone without using the library?as it doesn't seem to be on my PCM anymore.

    Hi am having problems with iTunes,I have all my music on my 4s but I bought the iPhone 5 today.is there any way that I can transfer music over to my new phone without using the library?as it doesn't seem to be on my PC anymore.i reset my pc and save my iTunes to a hard drive but can't access it.Need help please

    " When I did this, my library showed all the music I have "purchased" from itunes but did not have the music that I downloaded a long time ago through itunes from my old CDs."
    Correct.
    " How can I get that music to show up in my library now on my new computer?  "
    Copy it from your old computer or your backup copy of your old computer.
    The sync is one way - computer to ipod.

  • Any way to get stats on a project? (e.g. how many cuts)

    I have completed a a project which runs at 01:42:00 - a documnetary - and purely out of interest I wondered if there was any way to get any stats for it, such as how many files actually used (from hundreds of hours of footage), how many edit points etc....things of that nature. Is this possible in any way that anyone out there knows of?
    Thanks

    The video and audio useage stats are in the Project Window Columns.
    An EDL will show you how many files are used and how many edits and transitions.

  • I am working in Numbers and can't seem to change the generic value assigned to the legend.  Any advice on how to select the legend and save new values?

    I am working in Numbers and can't seem to change the generic value assigned to the legend.  Any advice on how to select the legend and save new values?

    Ntenich,
    If your table has a Header and your Legend text is in the header, it will be picked up by the table.
    Jerry

  • I've had a Samsung network extender for over a year and it's been great.  About a week ago, my iPhone 5 stopped connecting to it.  I've never had problems with this.  All the lights on the extender are blue, so it seems it's working fine.  Any suggestions

    I've had a Samsung network extender for over a year and it's been great.  About a week ago, my iPhone 5 stopped connecting to it.  I've never had problems with this.  All the lights on the extender are blue, so it seems it's working fine.  Any suggestions?

    Oh no! Lets ensure that you are connected. Have you tried to reset the Network Extender? Are other devices able to connect to the Extender? Is your Internet service up and running? 
    Share details so that we can help!
    Thank you, 
    LenaA_VZW
    Follow us on Twitter @VZWSupport

  • HT1338 My mail will not delete. When I move it to trash and then delete it within a few minutes it has all bounced back in again.  Checked my preference settings and all seems to be in order. Any ideas how to resolve this frustrating problem?

    My mail will not delete. When I move it to trash and then delete it, within a few minutes it has all bounced back in again.  Checked my preference settings and all seems to be in order. Any ideas how to resolve this frustrating problem?

    That sounds like a compatibility issue with an add-on that you have installed, as reported by a number of users in both Firefox 22 and Firefox 23 over the last couple of months. If you would provide a listing of your installed extensions ''(as you were prompted to do when creating this thread)'' maybe one of us can advise you which extension is the mot likely culprit. You will need to re-install Firefox 23 to do further diagnostic testing.
    As far as the compatibility of Firefox 23 and Win XP SP3, Mozilla has verified they are compatible and not one user ''(including me on two separate PC's)'' has reported a problem with compatibility.

Maybe you are looking for