[Scummvm-devel] New manual - The Burning Question!

Jamieson Christian jamiesonc at tds.net
Sun Jul 18 19:38:10 CEST 2004


----- Original Message ----- 
From: "James 'Ender' Brown" <ender at scummvm.org>


That has absolutely nothing to do with the problem, which is that
certain browsers simply cannot render alpha channels. It doesn't matter
whether the image is contained in HTML or CSS - it's still a PNG with
alpha :)

 - Ender

---------------------------- 

I agree, and you missed my point. As you said, we can't use PNG, because not
all browsers (*cough* IE *cough*) support the alpha channel that the logo
would require. So use GIFs, one for each background color, with the
partially transparent shadow simulated using opaque colors.

The problem you were stating, then, is that CSS isn't a viable option to
making all the different color schemes available because the GIF image would
have to change for each color scheme. An <img> tag references the same image
even if the CSS stylesheet changes. That causes a problem.

My solution is replace the <img> tag with a <div> tag that uses the CSS
"background-image" style attribute. This moves the image reference from the
HTML into the CSS and allows the CSS sheet for each color scheme to
reference a different GIF.





More information about the Scummvm-devel mailing list