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.
this image of firefox.
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; // !!!
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;
Comments
Post a Comment