How to set div using Z-index and fix css
===

Area of concern -

 - My Blue Div is overlapping over the green div. (I want to have a
   green Div then at the side Blue Div)
 - On `Mouseover` loaded content is making the blue div to fall down
   however im trying to set "mydatatoshow" div to be over
   "rightsideblock" using jquery `z-index` property.

 

Kindly have a look at it and let me know the possible solution.

My Working code ---




    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css">
    .container{width:999px;}
    .leftsideblock{float:left; border:1px solid green;width:674px;}
    .rightsideblock{border:5px solid blue;}
    </style>
    
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
    
    $('.mydivdata').mouseover(function(){
            $('.mydatatoshow').css('z-index', '9999');
    		$('.mydatatoshow').show();
    		var mydata = $(this).text();
    		$('.mydatatoshow').html(mydata);		
        });
    		
    $('.mydivdata').mouseout(function(){
    $('.mydatatoshow').hide();
    });
    
    
    });
    </script>
    
    <title>Test To Test</title>
    </head>
    <body>
    
    <div class="container">
    	<div class="leftsideblock">
    	<div class="mydivdata">
    <table width="650" border="0">
    <tbody>
    <tr>
    <td width="90" valign="top" rowspan="2" class="myimageclass">&nbsp;</td>
    <td width="193" valign="top">Monday 07 July 2012</td>
    <td width="424">
    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
    </td>
    </tr>
    </tbody>
    </table>
    </div>
    
        <div class="mydivdata">
    <table width="650" border="0">
    <tbody>
    <tr>
    <td width="90" valign="top" rowspan="2" class="myimageclass">&nbsp;</td>
    <td width="193" valign="top">Friday 06 July 2012 8:00AM</td>
    <td width="424">
    Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    </td>
    </tr>
    </tbody>
    </table>
    </div>
    	</div>
    	
    	
    	<div class="mydatatoshow">
    	</div>
    	
    	<div class="rightsideblock">
    	<p>
    	This is right sidebar data.This is right sidebar data.This is right sidebar data.This is right sidebar data.This is right sidebar data.This is right sidebar data.This is right    sidebar data.This is right sidebar data.This is right sidebar data.This is right sidebar data.This is right sidebar data.This is right sidebar data.This is right sidebar data.
    	</p>
    	</div>
    	
    </div>
    
    </body>
    </html>