gradient - CSS background-image not working - not showing -
my css:
background-image: url(/images/framework/arrow-down-small.png) no-repeat center; /* fallback */ background-image: url(/images/framework/arrow-down-small.png) no-repeat center, -webkit-gradient(linear, left top, left bottom, from(#eee), to(#ccc)); /* saf4+, chrome */ background-image: url(/images/framework/arrow-down-small.png) no-repeat center, -webkit-linear-gradient(top, #eee, #ccc); /* chrome 10+, saf5.1+ */ background-image: url(/images/framework/arrow-down-small.png) no-repeat center, -moz-linear-gradient(top, #eee, #ccc); /* ff3.6+ */ background-image: url(/images/framework/arrow-down-small.png) no-repeat center, -ms-linear-gradient(top, #eee, #ccc); /* ie10 */ background-image: url(/images/framework/arrow-down-small.png) no-repeat center, -o-linear-gradient(top, #eee, #ccc); /* opera 11.10+ */ background-image: url(/images/framework/arrow-down-small.png) no-repeat center, linear-gradient(top, #eee, #ccc); /* w3c */
all want background-image , gradient @ same time. html element is:
<input type="button" class="mybutton" />
but
- the background-image doesn't show @ all
- the gradient isn't there
the absolute path right because if try simple background:url(...) without gradient image there.
what's wrong?
thanks bernhard
with no-repeat
should skip -image
, try background:
", such :
background-image: url('image.png') no-repeat; /* doesn't work */ background-image: url('image.png'); /* works */
when use background:
think work because aren't using background-image
and maybe should try :
<input type = "image" class = "mybutton"/>
hope helps !
edit : quotes not mandatory
background-image: url(image.png); background-image: url("image.png"); background-image: url('image.png');
is same thing
Comments
Post a Comment