Subscribe to our updates:

A Design, WordPress and Tutorials Blog.

Dedicated to helping you learn the art and science of the web.

PNG transparency issues

If you are CSS coder, you've probably ran in to png transparency problems many times. Even Microsoft is having problems with it open in IE6. So I'll tell you few problems and solutions I've handled so far.

First one is if you need just simple transparent image, without some special needs for example backgrounds etc. The solution would be png fix. I've used it many times but it has lots of faults, for example with padding, margins and absolute positioning. Sometimes i can mess up the rest of your JavaScript files, but anyway very useful script. You can download it here and just include it in your <head> tag


  1. <!--[if lt IE 7.]>
  2. <script defer type="text/javascript" src="pngfix.js"></script>
  3. <![endif]-->

The second one can partly handle issues from first and it's pure CSS solution. I mostly use this for backgrounds, because if your path for a background is from CSS file then png fix can't handle it.


  1. .someelement {
  2. background-image: url(images/image.png);
  3. }
  5. * html .someelemen {
  6. background-color: #333;
  7. back\ground-color: transparent;
  8. background-image: url(images/blank.gif);
  9. filter: progid:DXImageTransform.Microsoft.
  10. AlphaImageLoader(src="images/image.png", sizingMethod="scale");
  11. }

I found this very useful, and also when you add some hover effects for example some color or other image. You can see live example here
NOTE: This simple hover is just example and it doesn't work in IE6

  1. .someelement:hover {
  2. background: #333;
  3. }
  5. .someelement:hover {
  6. background-image: url(images/image2.gif);
  8. }

Only problem I had with this was with <a> tag, link just don't work (when it's in div with this kind of background) and i don't know why (talking again for IE6). And only solution i could think of was to place another absolute div over it for the links, content etc... Yes i know it's not elegant but it works if content is not dynamic.

Luckily more and more people are starting to use IE7, and i must say i have recently switched too, i had to have IE6 because of testing my code and when i found out for Multiple IE program I switched immediately ;)

Leave a comment on Stylized Web Have some feedback? Leave a comment

200 Comments So Far

  1. I went over this site and I think you have a lot of excellent information, saved to faves.

    Feel free to surf to my web blog … best scar treatment;

  2. A hoover is the most reliable of cleaning resources;
    it can be the costlier. You can find various
    sorts of vacuum with various characteristics. So prior to buying a
    premier hoover make sure you understand what sort of hoover is
    greatest for your own needs.

    Determing the best vacuum can be vexing. To help make issues better you should
    be aware of what the various types of vacuum are, what the primary qualities it is possible to find on a hoover,
    and want you kind of flooring you’re going to be utilizing a vacuum-cleaner on.

  3. Hello! I’m at workk surfing around your bloog from my new iphone!

    Just wanted to saay I love reading your blog and look forward tto all your posts!
    Carry on tthe superb work!

  4. I relish, lead to I found just what I used to be taking a look for.

    You’ve ended my four day long hunt! God Bless you
    man. Have a great day. Bye

  5. continuously i used to read smaller content that also clear their motive, and that is also happening with this
    article which I am reading here.

  6. Hi there everyone, it’s my first visit at this site, and
    paragraph is truly fruitful in favor of me, keep up posting such posts.

  7. Simply want to say your article is as astonishing.
    The clarity in your post is simply excellent and i could assume you’re an expert on this subject.
    Fine with your permission let me to grab your RSS feed to
    keep up to date with forthcoming post. Thanks a million and please carry on the
    gratifying work.

  8. Attractive section of content. I simply stumbled upon your website
    and in accession capital to say that I acquire
    actually loved account your weblog posts. Any way I will be subscribing in your feeds or even I fulfillment you get right of entry to consistently fast.

  9. Hi, I would like to subscribe for this blog to obtain hottest updates, so where can i do it please assist.

  10. Magnificent beat ! I would like to apprentice while you amend your
    website, how can i subscribe for a blog site? The account helped me a acceptable deal.
    I had been a little bit acquainted of this your broadcast provided bright clear idea

  11. My relatives all the time say that I am killing
    my time here at web, but I know I am getting familiarity every day by reading thes good content.

  12. Howdy! Do you use Twitter? I’d like to follow you if that would be
    okay. I’m definitely enjoying your blog and look forward to new

  13. Wonderful beat ! I would like to apprentice while you amend your web site,
    how could i subscribe for a blog web site? The account helped me a acceptable
    deal. I had been tiny bit acquainted of this your broadcast provided bright clear idea

    Check out my web page – buy like facebook

  14. I am usually to blogging for cash and i really love your
    written content. The article has really speaks my interest.

    I am going to bookmark your site and keep checking for brand new information.

    My blog home remedies for acne scars (Jocelyn)

  15. If you are decorating for a casual look you are able to
    decorate accordingly by a little biit of fabric painting
    and other simple items to mwke the bag look cool, if you happen tto be decorating for slecial events you may consider making
    some detailed focus on them with stones and other graand items.
    “Mom the other day did I hear you tell Max you was up. You can fin small, medium and huge camera bags in addition to hobo-style bags.

  16. Quality content is the crucial to be a focus for the viewers to pay
    a visit the web site, that’s what this site is providing.

  17. Hi, I desire to subscribe for this webpage to get most up-to-date updates, thus where can i do it please help.

  18. Ciao ​​, mi piace leggere tutti posta . I
    volevo scrivere un piccolo commento a sostenervi .

  19. Hello to every body, it’s my first visit of this website; this webpage carries remarkable and truly excellent material in support of readers.

  20. Many pharmacies only offer the best sellers such as Viagra.
    Before diving into the world of web development, get in terms with jargons of the industry and there is much more to consider than determining price.
    Handcoders can be used for more involved projects that require PHP, ASP or Custom CMS Development or actual

    Feel free to visit my homepage: Jacksonville Sunshine State Site Design

  21. Hello! I simply wish to give you a huge thumbs up for your great information you
    have got right here on this post. I am coming back to your
    site for more soon.

  22. I was suggested this web site by my cousin. I am not sure whether this post is written by him as
    no one else know such detailed about my problem.
    You’re amazing! Thanks!

  23. Wow, amazing weblog format! How long have you ever been running a blog for?
    you make blogging glance easy. The overall glance of your web site is excellent, let alone the
    content material!

  24. Hey There. I found your blog using msn. This is a really well written article.
    I’ll make sure to bookmark it and return to read more of your useful information. Thanks for
    the post. I will certainly return.

    My website; 24 Hour AC Repair Gilbert AZ

  25. Review this short article for some fantastic e-mail promoting pointers.

    Believe it youu aren’t, there are numerous online choices foor creating a free small company website.
    This process is additionally some times called
    banner ads.

  26. Choose a soap that will cleanse your body and not just perfume it a
    little bit. With the growing trend of online
    shopping, more and more websites are emerging
    with quality hair care products for sleek and shiny hair. But who has the
    time to go through all that information.

    Here is my homepage; top skin products for african american women

  27. Advanced Plastic Surgery is here to celebrate beauty with its
    state of the art facilities and innovative services such as dermabrasion,
    BOTOX Cosmetic, body surgeries, and the latest Vi – Peel.
    In recent years the term “mommy-makeover” has become more common. The various types of
    plastic surgery on the face are:.

    my blog :: nose job kate middleton

  28. Right here is the perfect blog for anybody who wants to
    understand this topic. You understand a whole lot its almost
    hard to argue with you (not that I personally would want to…HaHa).
    You definitely put a brand new spin on a topic which has been written about for years.
    Excellent stuff, just wonderful!

    my web site … ,home monitoring service

  29. Generally I do not read post on blogs, however I wish to say that
    this write-up very pressured me to try and do it! Your writing
    style has been surprised me. Thanks, quite great post.

    Review my blog post: google

  30. I’m really enjoying the theme/design of your site.

    Do you ever run into any internet browser compatibility problems?
    A couple of my blog readers have complained about my
    website not working correctly in Explorer but looks great in Opera.

    Do you have any advice to help fix this problem?

    Here is my weblog … hairstyles of shaunie oneal

  31. Over time even a small crack in the caulk can allow enough moisture to
    penetrate to allow mold, mildew or rot to take hold.
    You should also allow a minimum of 36 inches of counter space to the right and
    then 30 inches to the left of the range and sink, if possible.
    This is the most deciding factor before you proceed forward.

    My weblog; blocked toilet city of pompano beach

  32. For those who are looking forward to that perfect tan to match with the dress or the mood or the d.
    As of today, cosmetics and makeup is used or not
    used by people who want to make a statement one way or the other.

    Since many people are involved in skin bronzing, the sunless tanning goods including bronzing lotions, creams and also sprays are well purchased in the market.

    my webpage :: chloe sims braided ponytail hairstyles african american

  33. Hey I know this is off topic but I was wondering if you knew of any widgets I
    could add to my blog that automatically tweet my newest
    twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something
    like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward
    to your new updates.

    Here is my site health problems (Etsuko)

  34. Hi there, You have done a fantastic job. I will definitely digg
    it and personally suggest to my friends. I am confident they will be
    benefited from this web site.

    Visit my weblog :: gift free

  35. This is a great tip particularly to those new to the blogosphere.

    Brief but very precise info… Many thanks for sharing this one.
    A must read post!

    My website :: giveaway free (Audry)

  36. Great post however , I was wondering if you could write
    a litte more on this subject? I’d be very thankful if you could elaborate a little bit more.
    Appreciate it!

    Review my web site :: health diet

  37. Article Source: more information on how to regrow
    your hair check out Total Hair Regrowth Review.
    Data coverage: market sizes (historic and forecasts),
    company shares, brand shares and distribution data. Your hair protected the
    top of the head from the elements.

    Visit my page :: laser capture microscopy

  38. However, this is not the case as anyone can be affected. The downside is these funds cannot
    be added to, except with other qualified funds. The constitutionality of DUI implied consent law has been fiercely debated for years.

    Look into my blog find an attorney brownsville, Rhoda,

  39. Hello! I could havе sworn I’ve been to this web site befօre but after browsing througɦ ѕome of tɦe articles I realized іt’s new to me.
    Anyhow, I’m definitely happy I stumbled upon it and Ι’ll
    be book-marking іt and checking back regularly!

  40. I сould not resist commenting. Perfectly written!

  41. What’s up to all, how is all, I think every one is getting more from this site,
    and your views are nice in support of new viewers.

  42. At this time I am going away to do my breakfast, afterward having my breakfast coming yet again to
    read more news.

  43. Way cool ! Algunos muy puntos válidos ! Aprecio que escribiendo esto
    más el resto del sitio es El sitio web está realmente bueno.

  44. Intercambio de enlaces es otra cosa es Solo
    colocación de la otra persona blogs enlace en su página en adecuado
    lugar y otra persona también lo hará parecido
    a favor de usted.

  45. Yo creer todos los Ideas que tienes introducida en el a tu cargo.

    Son realmente convencer y voluntad definitivamente trabajo.
    No obstante , los mensajes son demasiado short para
    novatos . Que acaba prolong ellas un poco de subsecuente tiempo?
    Gracias para el puesto.

  46. Add this to your Friday night calendar: Bin 22 at Betsy’s
    in Carytown hosts Richmond’s up-and-coming collaborative networking group called RVA Movers and Shakers.
    The services provided by a Moving Company – A moving company helps companies and folks to relocate their items from a single spot to an additional whether in the identical town or a single town to one more.
    They provide you the moving service in all aspects
    and they provide the following services such as local moving, long distance moving, corporate moving, piano moving, storage facilities, packing services and order boxes.

    my webpage :: allied excel moving and storage

  47. Before rushing into any financial decision, research all the options available and find what payment option is best for you.
    When the bathroom walls are crack or have been damaged the sink, the bathroom racks
    are no longer helpful it is time to think about bathroom remodeling.
    a) It is pricey depending on whether you might be employing a DIY system or you’re hiring the services of a remodeler.

    Here is my blog post – home owner association sky service plumbing pompano beach

  48. Face lift involves procedures to smooth out wrinkles and lines
    by surgically tightening the skin of the face. Place the back of
    both wrists at the bottom of the chin. This will give an assurance
    that the treatment which has offered is effective and suitable for

    My site facial plastic surgeon mn

  49. If you are looking for the best way to file for extension electronically, then you
    should use IRS e-file. Harry Reid says that an investor from Bain Capital admitted that Mitt
    Romney didn’t pay taxes for 10 years. Then you narrow down to your
    area of expertise (in this case accounting) and place and
    put in your keywords and press enter.

    Feel free to visit my web-site – cpa firm in boca raton

  50. This paragraph will help the internet people for building up new website or even a blog from start
    to end.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>