same margin for all pages when printing div
===

Im trying to print a div content using javascript where I have a Css for media print ... the problem is that I want all the pages to have same top-margin and bottom-margin ...

I tried many codes and searched on the web but the first page top margin is coming different from the rest pages how I can solve this problem.

Also I want some one to explain for me why Im getting different print with the 2 method of print when Im using the same css for both? each link pf print give different margin and line spacing and size ,,, plz help I feel its simple but Im not getting it ?!
here is my css ,,, by the way I tried to add the margin on body but it didn't solve it and even the @page I tried it was not taking the effect of @page

    #Printcontent
    {	font: 12pt "Times New Roman" , Times;
    	margin-top:.56cm;
    	margin-bottom:2cm;
    	color: #00ff00;
    	text-align: justify;
    }
    
    #printlink{
           display: none;
    }

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1"  runat="server">
    <title></title>
        
    <link type="text/css" rel="stylesheet" href="Print.css" media="print" />
        
    <script type="text/javascript">
    function printSelection(){
    
      var content=document.getElementById("Printcontent").innerHTML;
      var pwin=window.open('','print_content','width=auto,height=auto');
        pwin.document.open();
        pwin.document.write('<html>');
        pwin.document.write('<head>');
        pwin.document.write('<title>printed page</title>');
        pwin.document.write('</head>');
        pwin.document.write('<body onload="window.print()">');
        pwin.document.write(content);
        pwin.document.write('</body>');
        pwin.document.write('</html>');
        pwin.document.close(); 
      setTimeout(function(){pwin.close();},1000);
    
    }
    
    </script>
     
    
    </head>
    
    <body>
    <div id="printlink">
    <a href="#" onclick="printSelection();">Print</a>
    <a href="javascript:window.print();">PrintwithJS</a>
    </div>
    <div id="Printcontent" >
       <pre> Here goes all my paragragh like 3 or 4 pages depends</pre>
    </div>
    </body>

