Refer below code.
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Portrait ID Card Authentication</title>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<link href='https://fonts.googleapis.com/css?family=Comfortaa' rel='stylesheet' />
<link href='https://fonts.googleapis.com/css?family=Nunito' rel='stylesheet' />
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<!-- Bootstrap CSS CDN -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous" />
<!-- Our Custom CSS -->
<!-- <link rel="stylesheet" href="style.css"/>-->
<link href="css2/style2.css" rel="stylesheet" />
<link rel="stylesheet" href="style2.css" />
<!-- Scrollbar Custom CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.min.css" />
<!-- Font Awesome JS -->
<script defer src="https://use.fontawesome.com/releases/v5.0.13/js/solid.js" integrity="sha384-tzzSw1/Vo+0N5UhStP3bvwWPq+uvzCMfrN1fEFe+xBmv1C/AtVX5K0uZtmcHitFZ" crossorigin="anonymous"></script>
<script defer src="https://use.fontawesome.com/releases/v5.0.13/js/fontawesome.js" integrity="sha384-6OIrr52G08NpOFSZdxxz1xdNSndlD4vdcf/q2myIUVO0VsqaGHJsB0RaBE01VTOY" crossorigin="anonymous"></script>
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<script src="Scripts/popper.min.js"></script>
<script src="Scripts/jquery-3.4.1.min.js"></script>
<script src="Scripts/bootstrap.min.js"></script>
<style type="text/css">
.wrapper {
display: flex;
width: 100%;
align-items: stretch;
}
#sidebar {
min-width: 250px;
max-width: 250px;
min-height: 100vh;
}
#sidebar.active {
margin-left: -250px;
}
a[data-toggle="collapse"] {
position: relative;
}
.dropdown-toggle::after {
display: block;
position: absolute;
top: 50%;
right: 20px;
transform: translateY(-50%);
}
@media (max-width: 768px) {
#sidebar {
margin-left: -250px;
}
#sidebar.active {
margin-left: 0;
}
}
body {
font-family: 'Comfortaa';
background-color: #DCDCDC;
}
p {
font-family: 'Poppins', sans-serif;
font-size: 1.1em;
font-weight: 300;
line-height: 1.7em;
color: #999;
}
a, a:hover, a:focus {
color: inherit;
text-decoration: none;
transition: all 0.3s;
}
#sidebar {
/* don't forget to add all the previously mentioned styles here too */
background: #00003D;
color: #fff;
transition: all 0.3s;
}
#topbar {
background: #00003D;
}
#sidebar .sidebar-header {
padding: 20px;
background: #00003D;
font-size: medium;
font-weight: bold;
}
#sidebar ul.components {
padding: 20px 0;
border-bottom: 1px solid #47748b;
}
#sidebar ul p {
color: #fff;
padding: 10px;
font-size: medium;
}
#sidebar ul li a {
padding: 10px;
font-size: 1.1em;
display: block;
font-size: small;
}
#sidebar ul li a:hover {
color: #7386D5;
background: #fff;
}
#sidebar ul li.active > a, a[aria-expanded="true"] {
color: #fff;
background: #00003D;
}
ul ul a {
font-size: 0.9em !important;
padding-left: 30px !important;
background: #4682b4;
}
#sidebarCollapse {
background-color: #00003D;
font-size: x-small;
max-width: 25px;
min-width: 25px;
max-height: 25px;
min-height: 25px;
}
#sideCollapse {
background-color: #00003D;
font-size: x-small;
max-width: 26px;
min-width: 26px;
max-height: 26px;
min-height: 26px;
}
#content {
width: 100%;
font-size: small;
}
#center-content {
margin-right: 50%;
position: center;
}
#page {
align-content: center;
text-align: center;
}
#pnlContents [size="A4"] {
width: 21cm;
height: 29.7cm;
}
#pnlContents[size="A4"][layout ="portrait"] {
width: 29.7cm;
height: 21cm;
}
@page {
size: A4;
margin: 0;
}
@media print {
body, #pnlContents {
margin: 0;
box-shadow: 0;
}
}
#parent {
position: relative;
width: 400px;
height: 500px;
border: solid 1px;
font-size: 24px;
text-align: center;
}
#child {
position: absolute;
right: 40px;
top: 40px;
cursor: move;
background-color: #fafafa;
border: solid 1px #00003D;
font-size: 24px;
text-align: center;
backface-visibility: hidden;
background: unset;
height: 90px;
width: 86px
}
</style>
</head>
<body style="font-family: 'Comfortaa';">
<form id="form1" runat="server">
<div class="wrapper">
<!-- Sidebar -->
<nav id="sidebar">
<div class="sidebar-header" style="font-size: medium; font-weight: bold;">
</div>
<ul class="list-unstyled components">
<li>
<a href="#CarSubmenu" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">
<img alt="" src="images/car.png" height="23" />
Secure Vehicle</a>
<ul class="collapse list-unstyled" id="CarSubmenu">
<li>
<a href="RegisterCar.aspx">Register Vehicle</a>
</li>
<li>
<a href="ReportCar.aspx">Report</a>
</li>
<li>
<a href="#">Verify Vehicle</a>
</li>
</ul>
</li>
<li>
<a href="#phoneSubmenu" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">
<img alt="" src="images/phones.png" height="19" />
Secure Phones</a>
<ul class="collapse list-unstyled" id="phoneSubmenu">
<li>
<a href="#">Register Phone</a>
</li>
<li>
<a href="#">Report Phone</a>
</li>
<li>
<a href="#">Verify Phone</a>
</li>
</ul>
</li>
</ul>
<li id="dashboard" runat="server">
<a href="DashBoard.aspx">
<img alt="" src="images/dashboard-icon-28.png" height="25" />
Go to Dashboard</a>
</li>
</nav>
<div id="content">
<nav id="topnav" class="navbar navbar-expand-lg navbar-default navbar-inverse navbar-fixed-top" role="navigation" style="background-color: #DCDCDC; font-size: small; font-family: 'Comfortaa';">
<div class="container-fluid">
<button type="button" id="sidebarCollapse" class="btn btn-info">
<i class="fas fa-align-left"></i>
<span class="sr-only">Toggle Navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<h3 style="font-size: medium; font-weight: bolder; font: bolder; color: #00003D;"></h3>
<button class="btn btn-info d-lg-none ml-auto" id="sideCollapse" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<i class="fas fa-align-justify"></i>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="nav navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="Home.aspx">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">About</a>
</li>
<li class="dropdown" style="margin-right: 10px;">
<asp:Button ID="btnSignOut" runat="server" class="btn btn-primary navbar-btn" BackColor="SteelBlue" Text="Log Out" Style="font-size: smaller" />
</li>
</ul>
</div>
</div>
</nav>
<hr />
<br />
<div class="line"></div>
<div class="container" id="centered" style="margin-top: -2%; font-family: 'Comfortaa';">
<div class="form-horizontal">
<br />
<asp:Panel ID="pnlContents" runat="server">
<div class="page" id="parent" style="margin: 0 auto; margin-top: 0%;">
<img runat="server" alt="" src="https://i.imgur.com/1Y1pKZX.jpg" width="400" height="500" />
<div id="child1">
<div id="child">
<asp:Image ID="Image4" runat="server" BorderStyle="None" Width="86px" Height="90px" />
</div>
</div>
</div>
</asp:Panel>
<asp:Button ID="btnPrint" runat="server" CssClass="btn btn-primary navbar-btn" BackColor="SteelBlue" Font-Size="Medium" Text="Print" OnClientClick="return PrintPanel();" />
</div>
</div>
<footer>
<div class="container" style="background-color: #696969; font-size: x-small; height: 250px; position: relative; margin-bottom: 0%; max-width: 100%; font-family: 'Comfortaa';">
<p class="pull-right"><a href="#" style="color: white; font-family: 'Comfortaa';">Back to Top</a></p>
<div class="container-fluid" style="text-align: center; font-family: 'Comfortaa';">
<p style="color: white; font-family: 'Comfortaa'; margin-top: 3%; margin-left: 0%;">Contact Address: Merit Award House</p>
<p style="color: white; font-family: 'Comfortaa';">Maitama District</p>
<p style="color: white; font-family: 'Comfortaa';">079465375272 01-26547738754</p>
<asp:HyperLink ID="HyperLink5" runat="server" ImageUrl="~/images/facebk-icon1.png" imagesize="10" Height="20" NavigateUrl="http://www.facebook.com">HyperLink</asp:HyperLink>
<asp:HyperLink ID="HyperLink1" runat="server" ImageUrl="~/images/facebk-icon12.png" NavigateUrl="http://www.twitter.com">HyperLink</asp:HyperLink>
<asp:HyperLink ID="HyperLink6" runat="server" ImageUrl="~/images/email-icon-1.png" NavigateUrl="http://www.gmail.com">HyperLink</asp:HyperLink>
<asp:HyperLink ID="HyperLink7" runat="server" ImageUrl="~/images/linedin.png" NavigateUrl="http://www.linkedin.com">HyperLink</asp:HyperLink>
<asp:HyperLink ID="HyperLink8" runat="server" ImageUrl="~/images/whatsapp2.png" image-size="30px" NavigateUrl="http://www.whatsapp.com">HyperLink</asp:HyperLink>
</div>
<br />
<br />
<p style="color: white; margin-bottom: -4%; font-family: 'Comfortaa'; font-weight: bold;">Copyright © 2020 Joscheck Tech. All Rights Reserved.</p>
</div>
</footer>
</div>
</div>
</form>
<script>
window.onload = addListeners();
function addListeners() {
document.getElementById('child1').addEventListener('mousedown', mouseDown, false);
window.addEventListener('mouseup', mouseUp, false);
}
function mouseUp() {
window.removeEventListener('mousemove', divMove, true);
}
function mouseDown(e) {
window.addEventListener('mousemove', divMove, true);
}
function divMove(e) {
var div = document.getElementById('child1');
div.style.position = 'absolute';
div.style.top = e.clientY + 'px';
div.style.left = e.clientX + 'px';
}
function PrintPanel() {
var panel = document.getElementById("<%=pnlContents.ClientID %>");
//panel.getElementsByTagName('img')[0].removeAttribute('height');
//panel.getElementsByTagName('img')[0].removeAttribute('width');
panel.getElementsByTagName('img')[0].height = 1000;
panel.getElementsByTagName('img')[0].width = 1024;
var startStr = "<!--startPrint-->";
var headHtml = window.document.head.innerHTML;
var headPrint = headHtml.substr(headHtml.indexOf(startStr) + 23);
var printWindow = window.open('', '', 'height=450,width=350');
printWindow.document.write('<html><head><title>Template</title>');
printWindow.document.write('</head><body >');
//printWindow.document.write(headPrint);
printWindow.document.write(panel.innerHTML);
printWindow.document.write('</body></html>');
printWindow.document.close();
setTimeout(function () {
printWindow.print();
}, 5000);
return false;
}
</script>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.concat.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#sidebar").mCustomScrollbar({
theme: "minimal"
});
$('#sidebarCollapse').on('click', function () {
// open or close navbar
$('#sidebar').toggleClass('active');
// close dropdowns
$('.collapse.in').toggleClass('in');
// and also adjust aria-expanded attributes we use for the open/closed arrows
// in our CSS
$('a[aria-expanded=true]').attr('aria-expanded', 'false');
});
});
</script>
</body>
</html>