html - Responsive design for nav doesnt work -


i've done designing desktop screen doesn't work mobile phone. i'm wondering whats problem. here coding.

html

<div id="nav">             <span id="nav-icon"> <img src="assets/images/icon/navigation.png" alt="nav-menu"> </span>             <ul>                 <li> <a href="#"> link </a> </li>                 <li> <a href="#"> link </a> </li>                 <li> <a href="#"> link </a> </li>                 <li> <a href="#"> link </a> </li>                 <li> <a href="#"> link </a> </li>             </ul>              <div class="navimage">                 <a href="#"> <img src="facebook-icon.png" alt="facebook-icon" /> </a>                 <a href="#"> <img src="twitter-icon.png" alt="twitter-icon" /> </a>              </div>         </div> 

style.css

#nav {     border-bottom:1px solid #fff;     margin-bottom:20px;     padding:0;     text-align:center;     max-width:95%;     margin:0 auto; }  #nav #nav-icon img {     display:none; }  #nav li {     display:inline; }  #nav {     display:inline-block;     padding:15px;     font-family: 'alegreya_sansregular', sans-serif;     font-weight:bold;     font-size:15px;     margin:15px 0; }  #nav a:hover {     color:#deb887;     text-decoration:none; }  .navimage img {     width:30px;     height:30px;     border-radius:50%;     -webkit-border-radius:50%;     -moz-border-radius:50%;     -ms-border-radius:50%;     -o-border-radius:50%; }  .imgnav img {     margin-left:-25px; }  .navimage {     float:right;     margin-top:-80px; } 

responsive.css

@media screen , (min-width: 480px) , (max-width: 767px) {      #nav {text-align:left;}     #nav-icon img {display:inline-block;height:40px;}     #nav ul, #nav:active ul {display:none;position:absolute;padding: 20px;background:#fff;border: 3px solid #deb887;left:35px;top:70px;width:20%;border-radius:0 0 3px 3px;z-index:9999;}     #nav:hover ul {display:block;}     .navimage {margin-top:-300px;}     #nav li {text-align:center;display:block;}     #nav ul li {color:#000;padding:0;} } 

the problem 1. image (navigation menu) not showing @ all. 2. facebook , twitter logo cannot seen. 3. hover mouse somewhere within site navigation bar randomly showed (there wasn't picture of navigation menu)

here jsfiddle..

all mobile screen (min-width: 480px , max-width: 767px). ideas?


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -