homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Gold Sponsor 2015!
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

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

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

Msg#: 6200 posted 7:02 pm on Apr 6, 2005 (gmt 0)

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?



10+ Year Member

Msg#: 6200 posted 8:51 pm on Apr 6, 2005 (gmt 0)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved