Not sure what I have going wrong here. The gradient is showing fine, but the image is not.
Page is located here (wordpress site):
http://philfaranda.staging.spatialmatch.com/
body {
background-color: #FFF !important; /* fallback color if gradients are not supported */
background: #fff url(/wp-content/uploads/2013/01/body-bg2.png) repeat-x !important;
background-image: -webkit-linear-gradient(top, #fff, #A9A9A9) !important; /* For Chrome and Safari */
background-image: -moz-linear-gradient(top, #fff, #A9A9A9) !important; /* For old Fx (3.6 to 15) */
background-image: -ms-linear-gradient(top, #fff, #A9A9A9) !important; /* For pre-releases of IE 10 */
background-image: -o-linear-gradient(top, #fff, #A9A9A9) !important; /* For old Opera (11.1 to 12.0) */
background-image: linear-gradient(to bottom, #fff, #A9A9A9) !important; /* Standard syntax; must be last */
}
EDIT: Also seems that the gradient effect isnt being displayed in IE, the image is…
Thanks in advance for any help,
Ken
background-imageovveridesbackgorund. To make it properly work, there also need to be separatelly specified background-repeat. Tested in FFAfter comments from Ken it seems that there will be problem with IE 9. It cannot deal with gradients and images.
Now, to make it work in IE, you should add gradients similar as above code snippet, than wrap your entire content in
divfor which you should add image css.