Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

hide an element when window resize css

.myClass {
   display:block;
}
// width > 768px
@media screen and (max-width: 768px){ 
  .myClass{
    display:none;
  }
}

// width < 768px
@media screen and (min-width: 768px){ 
  .myClass{
    display:none;
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #hide #element #window #resize #css
ADD COMMENT
Topic
Name
9+3 =