How can I match a site's background color in both Chrome and Firefox?
I'm designing a page with both a background image and a background color for the area past the end of the (gradient) background image.
background: url("/images/bg.png") repeat-x scroll center top #666666;
I can get the background color to match the end of the image in either Firefox or Chrome, but not both. In one of the two the color I set is always darker than the end of the gradient, so a dividing line is clearly visible between the two.
I can't figure out how to select a color that works in both browsers.
Here's an example of a site using this technique successfully:
In this case the background color matches the end of the background image in both FF and Chrome (near the end of the page the bg image ends and the bg color fills the bottom portion).
Any ideas how to make this work? Thanks.
Edit: This reminds me of old palette-related problems, but I thought we were past all that now?
You could use a transparent PNG which fades from your color to transparent. This solution has the benefit of allowing you to change your background color (with css) without changing the gradient image.