views:

63

answers:

3

I'm looking to do something like this:

a blue background, with a white center, with drop-shadows to the left and right

Needs to be light-weight and compatible with IE6.

A: 

Making it in Gimp or Photoshop.

phimuemue
+3  A: 

You need to do it all in Photoshop. Create the dropshadow with a distance of "0". Then save the white background with the drop shadow as a PNG with a transparent background. The shadow will fade into whatever body background you have. This is what we have done with our website

http://infinitas.ws

EDIT:
I missed the IE part

I suppose a different option could be that you use the (blue gradient) within the background image and save it as a JPEG. This means that your #Main-Wrapper width will be the width of the entire white background PLUS the dropshadow AND some of the blue-to-white gradient. This is going to be challenging in CSS because you cannot repeat it vertically due to the blue-to-white gradient background.

EDIT EDIT:
Further you can use an IE hack to show a background WITHOUT a drop shadow to anyone using IE6 and then use the Transparent PNG for everyone else who is using a browser worth using.

<!--[if IE 6]>
Special instructions for IE 6 here
<![endif]-->
rockinthesixstring
IE6 doesn't like transparent (as in, alpha-channel) PNGs...
Shog9
@rockinthesixstring - is there any other way to get this without using PNG.
metal-gear-solid
ah, missed the IE6 bit. But honestly... IE6? If ANY corporation is still supporting IE6, they need to be shoved (really hard) in a new direction.
rockinthesixstring
@Shog9 - It doesn't *need* to be transparent, it can be a solid 1 layer image, it's background matching the rest of your site, and center it.
Nick Craver
@metal-gear-solid it needs to be an image, otherwise the gradient will suck.
rockinthesixstring
Dumb consumers still use IE6. Just do what @rockinthesixstring is saying, but don't use transparency. Have a gif/jpg for every piece of your site where you need a drop shadow. Yuck. Or use one of those IE6 png plugins http://www.twinhelix.com/css/iepngfix/
Stuart Branham
FWIW, I consider this the most practical solution - if IE6 users aren't used to lousy rendering yet, they will be soon enough.
Shog9
@Nick Craver - How it's possible without transparent PNG? background is fading to white.
metal-gear-solid
I edited my answer above.
rockinthesixstring
@metal-gear-solid - Larger background image :) I didn't say it's ideal, just possible. Want to support something that *doesn't* support standards? There's extra work, whether it's structure, image size, etc...you're making a compromise, because it doesn't support the method that works *everywhere* else.
Nick Craver
@metal-gear-sold and @Nick Craver, an IE hack might be the solution. Just use a white background without the gradient for IE6 users and show the proper background to everyone else.
rockinthesixstring
@Stuart B - +1 for iepngfix. Though not ideal... it's a great work around for obsolete IE browsers.
rockinthesixstring
Is there any css 3 solution?
metal-gear-solid
I don't think so. Are you absolutely tied down to having the drop shadow IN IE6?
rockinthesixstring
A: 

To add to the "make it in photoshop" answer, an alternative solution would be to use an IE PNG "fix". This makes translucent or transparent PNGs actually work somewhat in IE6. It's not perfect, but testing may show that it suits your needs.

http://www.twinhelix.com/css/iepngfix/

Stuart Branham
Heh, well... If you're gonna resort to using filters, you might as well just use the gradient filter and be done with it.
Shog9