code and design reflected in occasionally coherent words

Article Search:

March 14, 2010

Creating browser compatible CSS background color transparency is super easy, but it took some investigation (Googlin' until I ended up at Microsoft's site, deciphering this article) to bring internet explorer on board. Almost every browser other than IE are fine with RGBa (Red Green Blue alpha) which lets you specify something like rgba(255 255 255 .8) to put a nice white background with a subtle bit of transparency to the background of a text block. Wow.. both legible and visually busy.

This bit of CSS style markup for background transparency works as one would expect in every browser I've tested. A few old browsers that don't do rgba will be happy with rgb, and IE has an easy workaround that uses 8 character hex (2 for the alpha channel).

<style>
.classname {
/* load plan b for some old-obscure browsers first */
background: rgb(255, 255, 255);

/* load plan a -rgba  */
background: rgba(255, 255, 255, 0.8);

/* even new internet explorer doesn't pay attention so.. */
<!--[if IE]>
background:transparent;
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#ccffffff,endColorstr=#ccffffff);
zoom: 1;
<![endif]-->
}
</style>

Hope this helps you boost the visual appeal of your designs. If you can find a Browser that hates this please let me know, or perhaps a better way to do this.

October 20, 2009

fonts Ok, I really wanted to ramble on about @font-face and how, after the late 90′s browser wars, and some other foo, the dream of having some broader choices of fonts fell by the wayside… beyond the 12 or so web-safe settings. Recently @font-face has been revitalized… there’s much info on this everywhere at this …continue reading…

July 25, 2009

In an earlier post I wrote a some quick code to convert simple gif images to ASCII Art using PHP GD functions. In case you didn’t notice, things get distorted because pixels are square however ASCII symbols are rectangular and have spacing between each line. In my measurements this is about 8×11 (Width x Height) …continue reading…

July 10, 2009

This is an old Google Image Search ‘hack’ I updated to work with Google’s AJAX search API and PHP using cURL and JSON… For creative fun I’ve been working on some content sensitive visual mish-mash, and wanted to post some quick code in hopes others will do something creative with it. Back in the day, …continue reading…

June 22, 2009

My personal fondness for ASCII art began on the BSU VAX/VMS terminals back in 1993. I found a sweet Spock portrait to append to my login script. It made me smile with crazy nerdmusment every time I logged into the account. As any good subgenius, I’ll start with the Dobbshead. This is small, only 66×100 …continue reading…

Older Posts «...