Hi
Nav bar appears to behind the body(content)
I am not able to solve this issue
Refer below code
<html>
<head>
<meta http-equiv=“Content-Type” content=“text/html; charset=UTF-8”>
<title>navbar</title>
<style>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<meta name=“viewport” content=“width=device-width, initial-scale=1”>
- {box-sizing: border-box;}
body {
width:100%;
margin: 0;
font-family: Times New Roman, Arial, Helvetica, sans-serif !important;
}
.header {
overflow: hidden;
background-color: #f1f1f1;
padding: 11px 25px;
font-weight: bold;
}
.header a {
float: left;
color: black;
text-align: center;
padding: 6px;
text-decoration: none;
font-size: 16px;
line-height: 25px;
border-radius: 4px;
}
.header a.logo {
font-size: 25px;
font-weight: bold;
}
.header a:hover {
background-color: #ddd;
color: black;
}
.header-right {
float: right;
}
@media screen and (max-width: 500px) {
.header a {
float: none;
display: block;
text-align: left;
}
.header-right {
float: none;
}
}
.
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
opacity: 0.3;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
padding: 12px 16px;
z-index: 5000;
transition: .5s ease;
}
table, th, td {
border: 1px solid black;
}
.dropdown:hover .dropdown-content {
display: block;
float:left;
left:auto;
right:0;
margin-right:-10px;
opacity: 1;
}
.text-block {
position: absolute;
background-color: black;
color: white;
padding-left: 20px;
padding-right: 20px;
}
</style>
</head>
<body>
<!–Navigation bar–>
<div class="header2">
<a href="#default" class=“logo”>Call Us: 9999999999 / 000 - 1111111 </a>
<div class="header-right class=“social-icon unstyled”>
<a href="#">
<div class="fa fa-twitter"> &nbsp;&nbsp;</div>
</a>
<a href="#" target="_blank">
<div class="fa fa-facebook"> &nbsp;&nbsp;</div>
</a>
<a href="#">
<div class="fa fa-linkedin"> &nbsp;&nbsp;</div>
</a>
<a href="#">
<div class="fa fa-google-plus">&nbsp;&nbsp; </div>
</a>
<a href="#">
<div class="fa fa-pinterest"> &nbsp;&nbsp;</div>
</a>
</div>
</div>
<div class=“header”>
<a href="#default" class=“logo”><img src=“img/logo.png” alt="" width=“40” height=“40”/></a>
<div class=“header-right”>
<a class="active" href="#home">&nbsp;&nbsp;Home&nbsp;&nbsp;</a>
<a class="dropdown" href="#contact"><span>&nbsp;&nbsp;Courses&nbsp;&nbsp;</span>
<div class=“dropdown-content text-block”>
<table>
<tr>
<th>JAVA</th>
<th>SQL</th>
<th>TESTING</th>
<th>PHYTHON</th>
</tr>
<tr>
<td>J2EE</td>
<td>MYSQL</td>
<td>MANUAL TESTING</td>
</tr>
<tr>
<td>ADVANCE JAVA</td>
<td>ORACLE</td>
<td>AUTOMATION TESTING</td>
</tr>
</table>
</div>
</a>
<a class="dropdown2" href="#"><span>&nbsp;&nbsp;Training &amp; Development&nbsp;&nbsp;</span>
<div class=“dropdown2-content text-block2”>
<table>
<tr>
<th>Development&nbsp;&nbsp;</th>
<th>Technologies </th>
<th>industry Training&nbsp;&nbsp;</th>
</tr>
<tr>
<td>App Development</td>
<td>Java</td>
<td>Java Training</td>
</tr>
<tr>
<td>App Re-Designing</td>
<td>Php</td>
<td>Php Training</td>
</tr>
<tr>
<td>Mob App</td>
<td>Testing</td>
<td>Testing Training</td>
</tr>
</table>
</div>
</a>
<a href=“contact.html”> Contact </a>
<a href="about.html">&nbsp;&nbsp;About&nbsp;&nbsp;</a>
</div>
</div>
<!-- Navigation bar-->
</body>
</html>
How to solve this issue??