css - Links Are Not Working In Html? -


would me, none of html links working , don't know why? links in side menu are, links on main page , logo link don't? i'v added css html because don't know if html or css causing problem?

here's code:

   $(window).load(function() {       $("[data-toggle]").click(function() {         var toggle_el = $(this).data("toggle");         $(toggle_el).toggleclass("open-sidebar");       });       $(".swipe-area").swipe({         swipestatus: function(event, phase, direction, distance, duration, fingers) {           if (phase == "move" && direction == "left") {             $(".container").addclass("open-sidebar");             return false;           }           if (phase == "move" && direction == "right") {             $(".container").removeclass("open-sidebar");             return false;           }         }       });     });
#headermenu {    width: 100%;    height: 65px;    background-color: #212021;    padding: 0px;    margin: 0px;    position: fixed;    z-index: 1;  }  #logo {    color: #ffffff;    text-decoration: none;    font-family: helvetica, arial, sans-serif;    font-size: 25px;    background-color: #212021;    z-index: 1;    position: fixed;    top: 14px;    left: 10px;  }  #page-content {    position: absolute;    top: 100px;    z-index: 0;    padding-left: 20%;    padding-right: 20%;  }  #headermenu img {    width: 40px;    height: 40px;    background-color: #212021;    padding-top: 5px;    position: fixed;    top: 7px;    left: 70%;  }  #menu img {    width: 50px;    height: 50px;    background-color: #212021;    position: fixed;    top: -2px;    left: 85%;  }  #search {    background-color: #ffffff;    margin: 10px;    padding: 3px;    color: #424242;    border: 1px solid #212021;    border-radius: 10px;  }  body,  html {    margin: 0px;    overflow-x: hidden;    font-family: helvetica;    font-weight: 100;  }  .container {    position: fixed;    z-index: 1;    width: 100%;    height: 100%;    right: 0;    -webkit-transition: right 0.4s ease-in-out;    -moz-transition: right 0.4s ease-in-out;    -ms-transition: right 0.4s ease-in-out;    -o-transition: right 0.4s ease-in-out;    transition: right 0.4s ease-in-out;  }  .container.open-sidebar {    right: 240px;  }  #sidebar {    background: #313031;    margin-top: 64px;    position: absolute;    width: 200px;    height: 100%;    right: -240px;    box-sizing: border-box;    -moz-box-sizing: border-box;  }  #sidebar ul {    margin: 0;    padding: 0;    list-style: none;  }  #sidebar ul li {    margin: 0;  }  #sidebar ul li {    padding: 15px 20px;    font-size: 16px;    font-weight: 100;    color: white;    text-decoration: none;    display: block;    border-bottom: 1px solid #313031;    -webkit-transition: background 0.3s ease-in-out;    -moz-transition: background 0.3s ease-in-out;    -ms-transition: background 0.3s ease-in-out;    -o-transition: background 0.3s ease-in-out;    transition: background 0.3s ease-in-out;  }  #sidebar ul li:hover {    background: #ffffff;    color: #212021;    border: 1px solid #313031;  }  .main-content {    width: 100%;    height: 100%;    padding: 0px;    box-sizing: border-box;    -moz-box-sizing: border-box;    position: fixed;  }  .main-content .content {    box-sizing: border-box;    -moz-box-sizing: border-box;    padding-left: 60px;    width: 100%;  }  .main-content #sidebar-toggle {    background: #212021;    border-radius: 4px;    display: block;    padding: 10px 7px;    position: fixed;    top: 13px;    right: 20px;    float: right;  }  .main-content #sidebar-toggle .bar {    display: block;    width: 20px;    margin-bottom: 3px;    height: 3px;    background-color: #fff;    border-radius: 1px;  }  .main-content #sidebar-toggle .bar:last-child {    margin-bottom: 0;  }  /* smartphones (portrait , landscape) ----------- */    @media screen , (min-width: 250px) , (max-width: 300px) {    #logo {      color: #ffffff;      text-decoration: none;      font-family: "oxygen", helvetica, arial, sans-serif;      font-size: 23px;      background-color: #212021;      position: absolute;      top: 15px;      left: 10px;    }    #headermenu img {      width: 37px;      height: 37px;      background-color: #212021;      position: fixed;      top: 7px;      left: 65%;    }    #page-content {      padding-left: 5%;      padding-right: 5%;    }    #sidebar {      background: #313031;      margin-top: 64px;      position: absolute;      width: 170px;      height: 100%;      right: -240px;      box-sizing: border-box;      -moz-box-sizing: border-box;    }  }  @media screen , (min-width: 0px) , (max-width: 250px) {    #logo {      color: #ffffff;      text-decoration: none;      font-family: "oxygen", helvetica, arial, sans-serif;      font-size: 19px;      background-color: #212021;      position: fixed;      top: 17px;      left: 5px;    }    #headermenu img {      width: 35px;      height: 35px;      background-color: #212021;      position: absolute;      top: 7px;      left: 60%;    }    #page-content {      padding-left: 10px;      padding-right: 10px;    }    .container.open-sidebar {      right: 250px;    }    #sidebar {      background: #313031;      margin-top: 64px;      position: absolute;      width: 100%;      height: 280px;      right: -250px;      box-sizing: border-box;      -moz-box-sizing: border-box;    }  }  @media screen , (min-height: 300px) , (max-height: 400px) {    #sidebar ul li {      padding-top: 15px;      padding-bottom: 15px;      padding-left: 25px;      font-size: 15px;      font-weight: 100;    }  }  @media screen , (min-height: 0px) , (max-height: 300px) {    #sidebar ul li {      padding-top: 7px;      padding-bottom: 7px;      padding-left: 25px;      font-size: 13px;      font-weight: 100;    }  }
<meta name="viewport" content="target-densitydpi=device-dpi, initial-scale=1.0, user-scalable=no" />  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />  <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>          <body id="all">    <div id="headermenu">      <div id="logo">        <a href="/">seventy three</a>      </div>    </div>      <div id="page-content">      <a href="#">link 1</a>      <a href="#">link 2</a>      <a href="#">link 3</a>      <a href="#">link 4</a>    </div>        <div class="container">      <div id="sidebar">        <ul>          <form action="/search" mathod="post">            <li>              <input id="search" size=15 type="text" placeholder="search...">            </li>          </form>          <li>            <hr>          </li>          <li><a href="/index.html">home</a>          </li>          <li><a href="/about">about</a>          </li>          <li><a href="/projects">projects</a>          </li>          <li>            <hr>          </li>          <li><a href="/register">login / sign up</a>          </li>        </ul>      </div>      <div class="main-content">        <div class="swipe-area"></div>        <a data-toggle=".container" id="sidebar-toggle">          <span class="bar"></span>          <span class="bar"></span>          <span class="bar"></span>        </a>      </div>    </div>      </body>

any appreciated.

the issue here z-index of #page-content.

everything covering , links not reachable.

try add following

 #page-content {     position: absolute;     top: 100px;     z-index: 100;     padding-left: 20%;     padding-right: 20%; } 

this solve problem


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -