Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

-moz-linear-gradient with PNG background over top

Tags:

css

gradient

So Firefox supports gradient Backgrounds. Also supports multiple Background images.. So why does this not work??

background:-moz-linear-gradient(top, #5989bd,#336296), url(Active-Arrow.png) right center no-repeat;

Also tried:

background-color:-moz-linear-gradient(top, #5989bd,#336296);
background:url(Active-Arrow.png) right center no-repeat;    

Can this be done??

like image 857
Alex Avatar asked Apr 30 '10 06:04

Alex


1 Answers

You must include the background image BEFORE the linear gradient. e.g:

background: url("http://127.0.0.1/css/bg.png") no-repeat, 
-moz-linear-gradient(top left, rgb(0,255,0), rgb(255,0,0));
like image 176
Samuel Avatar answered Sep 27 '22 21:09

Samuel