broken animated background

broken animated background

    Hello. I am using jQueryUI's animate() function and jQueryUI redmond theme CSS file in my page.
    I tried to animate a div to a red background. But only the upper half of the div went red. (See the attachment)

    Thanks is advance for any explanation
    Tested in IE8 & FF3.6 & Safari 5.

    PS: removing the jQueryUI theme file or adding a 'useless' "#targetdiv {background:transparent}" to stylesheet will solve the problem but I can't tell why they work.

    here is my code:
    1. <!DOCTYPE html>
    2. <html>
    3.     <head>
    4.         <link rel="stylesheet" type="text/css" href="../css/jquery-ui-1.8.custom.css"/>
    5.         <style type="text/css">
    6.             .kb-anikey1{} .kb-anikey2{} #anikey h3 { margin:0; padding: 0.4em; text-align:
    7.             center; } #anikey { width:240px; padding:0.4em; } #anikey p { }
    8.         </style>
    9.     </head>
    10.     <body>
    11.         <div id="anikey" class="ui-widget-content ui-corner-all">
    12.             <h3 class="ui-widget-header ui-corner-all">
    13.                 animate
    14.             </h3>
    15.             <p>
    16.                 Lorem ipsum dolor 3 sit amet, consectetur adipiscing elit. Proin in elit
    17.                 elit, a egestas orci. Vivamus semper felis ipsum. Vestibulum ante ipsum
    18.                 primis in
    19.             </p>
    20.         </div>
    21.         <script src="../js/jquery-1.4.2.js"></script>
    22.         <script src="../js/jquery-ui-1.8.custom.min.js"></script>
    23.         <script>
    24.             $(document).ready(function() {
    25.                 $("#anikey").animate({
    26.                     backgroundColor: '#aa0000',
    27.                     color: '#1e4ffc',
    28.                     width: 500
    29.                 }, 2000);
    30.             });
    31.         </script>
    32.     </body>
    33. </html>
      • Topic Participants

      • z089