css - HTML Icon not clickable -


i'm developing website , want use icon google fonts. can see on screen when click on nothing happens.

<div class="darker"> <img class="background" src="~/content/images/portada.jpg" alt="smiley face" height="150" width="150"> <i class="material-icons" id="menu-toggle">menu</i> </div>  <div id="page-content-wrapper">         <div class="container">         <div class="flex-center">             <div class="animated fadeinup">                     <img class="img-responsive centering" id="title" src="~/content/images/pizzeriabritannia.png" />             </div>              <div class="animated flipinx text-center">                     <h3>desde 1986 contigo y con los tuyos</h3>             </div>         </div>     </div> </div> 

and function want call.

     $('#menu-toggle').click(function () {     e.preventdefault();    $("#wrapper").toggleclass("active"); }); 

full css divided in 2 files:

sidebar:

.row{ margin-left:0px; margin-right:0px; }  #wrapper { padding-left: 0px; transition: .4s ease 0s; height: 100%; }  #sidebar-wrapper { margin-left: 0; left: 0; width: 250px; background: #222; position: fixed; height: 100%; z-index: 10000; transition: .4s ease 0s; opacity: 0.8;  }  .sidebar-nav { display: block; float: left; width: 250px; list-style: none; margin: 0; padding: 0; }  #page-content-wrapper { padding-left: 0; margin-left: 0; width: 100%; height: auto; }  #wrapper.active { padding-left: 0px; }  #wrapper.active #sidebar-wrapper { left: -250px; }  #page-content-wrapper { width: 100%; }  #sidebar_menu li a, .sidebar-nav li { color: #ffffff; display: block; float: left; text-decoration: none; width: 250px; background: #252525; border-top: 1px solid #373737; border-bottom: 1px solid #1a1a1a; -webkit-transition: background .5s; -moz-transition: background .5s; -o-transition: background .5s; -ms-transition: background .5s; transition: background .5s; }  .sidebar_name { padding-top: 25px; color: #fff; opacity: .7; }  .sidebar-nav li { line-height: 40px; text-align: center; }  .sidebar-nav li { color: #999999; display: block; text-decoration: none; }  .sidebar-nav li a:hover {  color: #fff;  background: rgba(255,255,255,0.2);  text-decoration: none;  }  .sidebar-nav li a:active, .sidebar-nav li a:focus {  text-decoration: none;  }  .sidebar-nav > .sidebar-brand {  height: 65px;  line-height: 60px;  font-size: 18px;  }   .sidebar-nav > .sidebar-brand {  color: #999999;  }   .sidebar-nav > .sidebar-brand a:hover {  color: #fff;  background: none;  } 

i know jquery working fine i've tested button. think problem might fullscreen image overlapping icon (but it's visible though). idea this?

i can't find #wrapper in html you're calling in

    $('#menu-toggle').click(function () {     e.preventdefault();    $("#wrapper").toggleclass("active"); }); 

maybe you're calling on wrong id? -> page-content-wrapper looks right 1 if i'm not mistaken


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -