I am using CSS3PIE to generate gradient background for a div.
-pie-background: linear-gradient(#BFBBBB, #FFFFFF);
Above code renders the desired effect. But this fills the complete height of div with gradient.
I need to restrict the gradient upto few pixels (or percentage) from top of the div.
CSS3 equivalent for Chrome is
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #BFBBBB), color-stop(30%, #FFFFFF));
The key here is color-stop(30%, #FFFFFF)
. If you have used CSS3 PIE earlier, please suggest how to obtain color-stop
property with CSS3-PIE.