jQuery slider messing up my css gradient? -


i put jquery slider in page, , when add new div underneath , add float: left gradient stops right there. here's link.

and when don't add float: left gradient background normal :s...

css:

body {     height: 100%;     border-top: 1px solid white;     margin:0;     background-repeat: no-repeat;     font-family: 'aandachtbold';     -webkit-font-smoothing: antialiased;     background: #cdd6de;!important;     background: -webkit-gradient(linear, 0 0, 0 bottom, from(#f4f5f5), to(#cdd6de));fixed !important;     background: -moz-linear-gradient(#f4f5f5, #cdd6de);fixed !important;     background: linear-gradient(#f4f5f5, #cdd6de);fixed !important;     -pie-background: linear-gradient(#f4f5f5, #cdd6de);fixed !important;     behavior: url(/pie.htc); } 

javascript:

<script src="js/jquery-1.4.4.min.js"></script> <script src="js/slides.min.jquery.js"></script> <script src="js/jquery.easing.1.2.js"></script> <script src="js/smooth-src-comments.js"></script> <script>     $(function(){         $('#slides').slides({             preload: true,             preloadimage: 'img/loading.gif',             play: 3500,             pause: 2500,             hoverpause: true         });     }); </script> 

your css code seems invalid.

for example

  background: #cdd6de;!important; 

this should

  background: #cdd6de !important; 

also have never seen "fixed" used on gradient before, causing problem

  background: -moz-linear-gradient(#f4f5f5, #cdd6de);fixed !important; 

try using code below colors, code works in internet explorer too;

  background: #0a284b;   background: -webkit-gradient(linear, left top, left bottom, from(#0a284b), to(#135887));   background: -moz-linear-gradient(top, #0a284b, #135887);   filter: progid:dximagetransform.microsoft.gradient(startcolorstr='#0a284b', endcolorstr='#135887');   zoom:1; 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -