Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

A new CSS Bug -- Good for a laugh :-J


JAB Creations

7:02 pm on Apr 6, 2005 (gmt 0)

WebmasterWorld Senior Member jab_creations is a WebmasterWorld Top Contributor of All Time 10+ Year Member

I've been working on a site-wide script that appears when someone finds my site via a search engine. This means the page they found won't load in to the frameset and therefor the cookies set by those frames won't be set and their preferences are unknown. Therefor I've devised a DIV that is rather large and to a certain extent a little obnoxious but nontheless gives the user a choice (and the page they came to will ultimately load IN the frameset just after they make their choice...

Well I was thinking how to mix it up a bit. You can see the page around the DIV but not underneath it. Then it hit me ... why not use a partially transparent image as the DIV's BG image and partially allow parts of the page underneath the DIV to show. So I opened up the most complex image editor known to man (mspaint) and made a 2x2 px image with black px on the top left and bottom right and then the other two px fuschia. Went to Photoshop and saved it as a transparent GIF.

Final results didn't end up the way I hoped. All three browser engines (Gecko, IE, and Opera) on my PC failed to render the alpha channel as such! It was an interesting experiment though. Never saw so much fuschia on my site. I'd still like to know if my idea is possible however if anyone has any ideas?


8:51 pm on Apr 6, 2005 (gmt 0)

10+ Year Member

You'll probably need to use .png instead of .gif for alpha transparency to work. IE normally doesn't support it but there's a way to make it work in IE ([koivi.com ]). I've never tried it myself, though.

Featured Threads

Hot Threads This Week

Hot Threads This Month