Refer below updated html.
HTML
<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>Car</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>
<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: #6d7fcc;
}
#sidebarCollapse {
background-color: #00003D;
font-size: x-small;
max-width: 30px;
min-width: 30px;
}
#sideCollapse {
background-color: #00003D;
font-size: x-small;
max-width: 28px;
min-width: 28px;
}
#content {
width: 100%;
font-size: small;
}
#centered {
margin: 0 auto;
width: 80%;
padding: 40px 0 0 0;
}
#imgcent {
margin: 0 auto;
position: center;
}
</style>
<style>
#parent {
position: relative;
width: 204px;
height: 324px;
border: solid 2px #00003D;
font-size: 24px;
text-align: center;
}
#child {
background-color: #fafafa;
border: solid 1px #00003D;
font-size: 24px;
text-align: center;
background: unset;
height: 100px;
float:left;
}
</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;">
<li>
<a>
<asp:Label ID="named" runat="server" Font-Size="smaller" Text="A & M Business" ForeColor="White"></asp:Label></a>
</li>
<li>
<a href="#">
<asp:Label ID="user" runat="server" Font-Size="x-small" Text="ukosimons@gmail.com" ForeColor="White"></asp:Label><img alt="" src="images/img1.jpg" height="20" /></a>
</li>
<li>
<a>
<img alt="" src="images/wallet-4-xxl (1).png" height="25" /> <asp:Label ID="Units" runat="server" Font-Size="x-small" Text="" ForeColor="White"></asp:Label></a>
</li>
</div>
<ul class="list-unstyled components">
<li>
<a href="#homeSubmenu" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">
<img alt="" src="images/lock-xxl.png" height="20" />Authenticate Documents</a>
<ul class="collapse list-unstyled" id="homeSubmenu">
<li>
<a href="#">Certificates</a>
</li>
<li>
<a href="#">ID Cards</a>
</li>
<li>
<a href="#">Tickets</a>
</li>
<li>
<a href="#">Reciepts</a>
</li>
</ul>
</li>
<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="#">Register Vehicle</a>
</li>
<li>
<a href="#">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" style="color: #00003D;">
<a class="nav-link" href="#">Home</a>
</li>
<li class="nav-item" style="color: #00003D;">
<a class="nav-link" href="#">About</a>
</li>
<li class="dropdown" id="Pbutton" style="margin-right: 10px;">
<script src="https://js.paystack.co/v1/inline.js"></script>
<asp:Button type="button" ID="lipaybutton" runat="server" class="btn btn-primary navbar-btn" BackColor="SteelBlue" Text="Wallet" Style="font-size: smaller;" />
</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" style="text-align: center;">
<div class="form-horizontal">
<asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="true" Font-Size="Large" ForeColor="#00003D" Font-Names="Nunito" NavigateUrl="~/QRCodeII.aspx">Go to Landscape Mode</asp:HyperLink>
</div>
</div>
<div class="container" id="centered" style="margin: 0 auto; margin-top: 0%; text-align: justify; text-align: center; margin-left: 5%;">
<center>
<asp:FileUpload ID="FileUpload1" runat="server" Height="43px" Width="282px" onchange="ImagePreview(this);" />
</center>
<asp:Label ID="Labelconfirm" runat="server" Font-Size="Large"></asp:Label>
<div class="row">
<div class="col-md-6">
<div id="parent" style="margin: 0 auto; margin-top: 0%;float:right;">
<asp:Image ID="Image3" runat="server" Width="204px" Height="324px" />
</div>
</div>
<div class="col-md-6">
<div id="child">
<asp:Image ID="Image4" runat="server" BorderStyle="None" Width="100" Height="100" />
</div>
</div>
</div>
<br />
<asp:Button ID="Button1" runat="server" CssClass="btn btn-primary navbar-btn" Text="Generate QR Code" Width="170px" BackColor="SteelBlue" Height="40px" />
<asp:Button ID="finish" runat="server" Height="40px" CssClass="btn btn-primary navbar-btn" Text="Finish" BackColor="SteelBlue" Width="150px" />
<div>
<asp:Label ID="lblMessage" runat="server"></asp:Label>
</div>
</div>
</div>
</div>
</form>
<!-- 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 type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/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>