Welcome to the Personal Website of George Michael Huff

Oct 26 2006

.png goodness

By George Huff

Internet Explorer 7 has me excited. Why? It isn’t the shiny new UI which has folks asking, “where did my buttons go?” It is the PNG Support! No longer will I have to litter my CSS with IE hacks to get them working. I know CSS well enough to avoid the usual Internet Explorer pitfalls, but I still have * html … for PNGs.

I’m wondering when it will be ok to drop the PNG hack entirely and tell people if they want to see the sites, upgrade to Internet Explorer 7 (or firefox). As I have still received complaints that sites don’t look good on Internet Explorer 5.5 on a Mac, it will probably be awhile.

For those who don’t know the hack it looks a little like this:

div#mask {
background: url(images/mask.png) top left no-repeat;
}

/* FOR IE 5.5+ ALPHA TRANSPARENCY */
* html div#mask {
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=”images/mask.png”, sizingMethod=”crop”);
}

As one can see, assigning the background to none and pulling in the automagically gets png transparency working in IE. The first div is how it should be, the second div is how it is. For the sizingMethod, one can use crop or scale. Scale is for repeating backgrounds, but instead of repeating, it stretches. So this only works for some sites, not all.

Good luck and may the future bring us more web standards.

Popularity: 10% [?]

Comments for .png goodness

You Say about .png goodness

Welcome to the Website of Eleven3. I like to build clean websites, period.

This Is George Huff

He is a web designer / entrepreneur / conspirator / blogger / fianceé living in Portland, Oregon.

When not fully immersed building websites, he runs a record label, writes music, throws a music festival, grows vegetables, and happens to be a huge advocate of his friends and family.

Currently My Latest Twitter

it's slowly turning into a work night. Gotta say it is going to be tough getting anything done on a Sunday for awhile. 4 hrs ago Follow Me

Work by Industry

Sport

  • Body by Dance
  • This is American Soccer
  • Clint Dempsey

Arts and Marketing

  • Tease Marketing
  • HomeSkillet Fest
  • Nicholas Galanin

Misc

  • Noyes Development
  • Ecoshuttle

Work by project type

Blogs

  • This is American Soccer
  • Nicholas Galanin
  • Clint Dempsey
  • Body by Dance

Websites

  • Tease Marketing
  • HomeSkillet Fest
  • Noyes Development
  • Ecoshuttle

Print

  • Sign of Life
  • HomeSkillet Fest '07 Catalog

Contact how can I help ya?

I am always open for work - sometimes more than others. Send me a message if you have a project that would be of interest. Cheers.

Send a copy to yourself