make footer invisible on smaller screen - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Footer

Description

make footer invisible on smaller screen

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.block {<!--  w ww. java  2s . co  m-->
   height:100px;
   width:100px;
   background-color:Chartreuse;
}

@media screen and (max-width: 500px)  {
   .block {
      display:none;
   }

}
</style> 
 </head> 
 <body> 
  <div class="block"></div>  
 </body>
</html>

Related Tutorials