Why my fixed menu is under my hamburger icon?

Why my fixed menu is under my hamburger icon?

Is it possible to locate the hamburger icon in the fixed menu bar?

Is it possible to locate the hamburger icon in the fixed menu bar?

I tried to put the element inside the class="sidenav" in the body tag but the I couldn't find the icon.

span {
  font-size: 30px;
  cursor: pointer;
  position: absolute;
}


/* Style the navigation bar */

.navbar { width: 100%; margin-left: 0px; background-color: #555; overflow: auto; }

/* Navbar links */

.navbar a { float: left; text-align: center; padding: 12px; color: white; text-decoration: none; font-size: 17px; } <body> <div id="main"> <span onclick="openNav()">&#9776;</span> <div class="navbar"> <a href="#">Home</a> <a href="#">Search</a> <a href="#">Contact</a> <a href="#">Login</a> <input type="text" placeholder="Search.." name="search"> <button type="submit"><i class="fas fa-search"></i></button> </div> </div> </body>


Expectation

Reality


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

The Ultimate Guide to Web Development with HTML and CSS

The Ultimate Guide to Web Development with HTML and CSS. Learn Web Development by creating a Blog with HTML and CSS. Make a web applications using HTML5 and CSS3. Create a blog from Scratch.

Animate Any SVG icons with CSS Only | SVG Stroke Animation With Html CSS

Animate Any SVG icons with CSS Only | SVG Stroke Animation With Html CSS

HTML 5 Tutorial: How to create a table using HTML tags and Stylesheet (CSS)

In this article, we want to show you how to create a table using HTML tags and Stylesheet (CSS). HTML table may vary depends on data and style requirements. Sometimes, in the real application, we use an HTML table as a layout of the Email template in HTML format.