Perhaps what you are seeking is a way to create a div with a background image (such as a gradient) mixed with a solid color?
To achieve this, obtain the hexadecimal value of the final pixel in your gradient from an image editor like Photoshop. Let's assume it is #FF0000. Then apply the following code:
.myDiv {
background: #FF0000 url(green_bg.gif) repeat-x 0 0;
}
This will blend the solid red (#FF0000) background with the specified image, repeating horizontally and starting at the top of your div. To ensure more of the red background is visible, increase the content within your div.
If you wish to always display a specific section of your gradient, adjust the padding-top
property in your CSS:
.myDiv {
background: #FF0000 url(green_bg.gif) repeat-x 0 0;
padding-top: 20px;
}
If this explanation does not address your query accurately, please provide further clarification in your question.