PNG Transparency

January 27th, 2007 by artillery unit

As I was designing this blog, I ran into a problem. I wanted the site to have a flexible layout no matter how large the window size. The header image was part of the background graphic, so as the content of the site centered itself automatically, the header was always stuck on the top left of the window. The solution was then to make the header a separate image that “floated” above the background, and centered itself with the rest of the site’s content.

This presented another obstacle, as I soon realized that a simple jpg image wouldn’t suffice since it would cover the background pattern, due to its lack of transparency support. A gif image would also not work since it only supports binary transparency, making my graphic a pixelated yet transparent mess. The only viable image format would be png.

This is where my headaches began. The good folks at Microsoft fubar’d png transparency support in older versions of their ubiquitous Internet Explorer (versions 5.5 and 6.0). Thus began my 2 day journey into finding a hack that would allow me to display png’s with transparency.

I tried a javascript hack but that proved unreliable since some people disable javascript on their browsers.

I tried a Wordpress Plugin, but that did absolutely nothing to my header images.

Then I experimented with a CSS hack which seemed really promising and clean. For some reason that didn’t work at all in Wordpress, although I’m not sure why.

Then, finally I stumbled on a PHP solution which would be perfect since it was server-side, didn’t rely on javascript, and most important… IT WORKED!

It renders perfectly in IE 5.5, 6.0, 7.0 and all other modern browser like Firefox and Safari. There’s no workaround for IE 5.1, but considering that probably less than 1% of people use that antiquated browser, I’m not too worried about it.

Posted in Webdesign | No Comments »

The Ultimate Mac Shrine

January 26th, 2007 by artillery unit

According to Chip Chick:

“Jeremy Mehrle of St. Louis, Missouri has a computer collection that would have most Mac aficionados drooling uncontrollably. His basement has 74 Macs on display, with 30 of them situated at his Classic bar. Overall, his collection contains 18 different CRT based iMacs, a Next Cube, four different Apple II computers, and a 20th a Anniversary Mac. Check out flickr for more photos.”

This thing has to be seen to be believed.

Posted in Apple | No Comments »

The 10th Dimension

January 25th, 2007 by artillery unit

This is the new Artillery Unit Blog. Hope you all enjoy it. To start off, I’d like to share this video I found. Even though this might not be the accepted view of how to visualize String Theory, I think it’s really fascinating. It’s even more interesting now that scientists are working on a new way to test String Theory.

Posted in Science, Videos | No Comments »