html - Mobile Button Menu (Drop Down Menu) goes on to of content -


the button when clicked makes menu appear although not push content down, goes on top of , can't see it. i've tried changing position of .navbar nothing works, removed background colour of navbar see whether sidebar , main have disappeared or whether behind (it behind). in advance!

<html> <head>     <title></title>     <link rel="stylesheet" type="text/css" href="styles.css">     <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>     <script src="script.js"></script>     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <!--[if lt ie 9]>         <script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>     <![endif]--> </head> <body>     <header>         <img class="logo" src="arm.png">     </header>     <nav>         <img class="menuicon" src="menu.png">         <ul class="navbar">             <li><a href="index.html">home</a></li>             <li><a href="aboutus.html">about us</a></li>             <li><a href="prices.html">prices</a></li>             <li><a href="ourwork.html">our work</a></li>             <li><a href="contactus.html">contact us</a></li>         </ul>     </nav>     <div class="container">         <div class="sidebar">             test         </div>         <div class="main">             test         </div>     </div> </body> </html>  /* css */  nav { background-color: ; width: 100%; height: 35px; }  .menuicon { width: 35px; float: right; }  .hidden { display: none; }  .navbar { list-style: none; margin: 0 auto; padding: 0 3px; width: 100%; background-color: ; position: relative; top: 35px; }  nav li { width: 100%; border-left: 0; text-align: center; background-color: ; border-bottom: 1px solid black; position: relative; }  nav li:nth-of-type(1) { border-top: 1px solid black; }  nav li { font-size: 25px; text-decoration: none; }  .sidebar { width: 100%; background-color: blue; }  .main { width: 100%; background-color: red; }  jquery $(document).ready(function() {     $(".navbar").toggleclass("hidden");     $(".menuicon").click(function() {         $(".navbar").toggleclass("hidden");     }); }); 


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -