html - Css Paper effect not working in FireFox -


i created div gets dynamically populated javascript has background resembles piece of notebook paper. works in safari , chrome reason doesnt render correctly in firefox. can give me insight on whats wrong styling ?

this image of chrome , safari.

working effect (chrome ie safari etc..

this image of firefox. broken paper effect

here html , css

<div id="paperbackground" class="col-sm-6 paper">    <h3 style="text-decoration:underline;"><i>shopping list<i></h3>    <div class="multiorderlist">      <p id="list"></p>    </div>    <div style="clear: both;"></div>  </div>  .paper{   width: 100%;   min-height: 175px;   height: 100%;   border: 1px solid #b5b5b5;   background: white;   background: -webkit-linear-gradient(top, #848eec 0%, white 8%) 0 57px;   background: -moz-linear-gradient(top, #848eec 0%, white 8%) 0 57px;   background: linear-gradient(top, #848eec 0%, white 8%) 0 57px;   -webkit-background-size: 100% 30px;   -moz-background-size: 100% 30px;   -ms-background-size: 100% 30px;   -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);   -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75); } 

+bonus ie compatibility

you missing unprefixed version in background-size:

-webkit-background-size: 100% 30px; -moz-background-size: 100% 30px; -ms-background-size: 100% 30px; background-size: 100% 30px;     // !!! 

fiddle

and bonus, added -ms-linear-gradient (and changed unprefixed data)

background: -webkit-linear-gradient(top, #848eec 0%, white 8%) 0 57px; background: -moz-linear-gradient(top, #848eec 0%, white 8%) 0 57px; background: -ms-linear-gradient(top, #848eec 0%, white 8%) 0 57px; background: linear-gradient(to top, #848eec 0%, white 8%) 0 57px; 

fiddle2


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -