responsive design - Can't hide navigation when screen gets smaller -


i wan't hide nav , made img smaller when screen gets smaller 750px.

example code

this doesn't work:

@media (max-width: 750px)     header#site-header         a.logo             img                 margin: 15px                 height: 25px          nav             display: none 

and does:

@media (max-width: 750px)     header#site-header         .container             a.logo                 img                     margin: 15px                     height: 25px              nav                 display: none 

the stylesheet before media queries overwriting styles. specifying direct path element gets higher priority , work. or can place !important give higher priority.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -