IE Background image with transparency

Why would this simple line of code work perfectly in firefox e.t.c but in IE it creates some weird fade issue.

#content { background:url(images/bg-trans.png) repeat; padding:25px 21px; width:918px; overflow:hidden; }

Its like the transparency is started in a corner but then it gradually fades out...very annoying!!!


I ran into this awhile ago with IE8.

It's because you have a 1x1 background png with transparency. For some reason, IE8 borks on these, and applies them as a fading gradient down a large area.

The solution, oddly enough, is to simply make your background .png file bigger in dimension. 1x2 or 2x1 will do it. To be nice to the browsers, something a little bigger is better, 10x10 or 20x20 maybe, as this means they don't have to render it so many times across the background.

Need Your Help

handling about 450.000 files in a zip

java performance file-io zip out-of-memory

My question is simple. Would Java handle a .zip file with about 450,000 files in there? The code that I wrote would not load all of the files, just one specific file would be searched in the zip, a...

Forward Declare in Header and Include in CPP?

c++ header include forward-declaration

I have begun to forward declare what I can in the header. However, the majority of the time I am only postponing the #include to the corresponding cpp file.