﻿/*! responsive-nav.js 1.0.39 by @viljamis */
    <style> 
          
        /* Media Query for Mobile Devices */ 
        @media (max-width: 480px) { 
            body { 
                background-color: red; 
            } 
        } 
          
        /* Media Query for low resolution  Tablets, Ipads */ 
        @media (min-width: 481px) and (max-width: 767px) { 
            body { 
                background-color: yellow; 
            } 
        } 
          
        /* Media Query for Tablets Ipads portrait mode */ 
        @media (min-width: 600px) and (max-width: 1024px){ 
            body { 
                background-color: blue; 
            } 
        } 
          
        /* Media Query for Laptops and Desktops */ 
        @media (min-width: 600px) and (max-width: 1850px){ 
            body { 
                background-color: green; 
            } 
        } 
          
        /* Media Query for Large screens */ 
        @media (min-width: 1281px) and (max-width 1850) { 
            body { 
                background-color: white; 
            } 
        } 
    </style> 
</head> 
  
<body style = "text-align:center;"> 
    <h1>GeeksforGeeks</h1> 
    <h2>Media Query</h2> 
<                    
.nav-collapse ul {
  margin: 0;
  padding: 1 em;
  max-width:100%;
  display: block;
  list-style: none;
}

.nav-collapse li {
  width: 100%;
  display: block;
}

.js .nav-collapse {
  clip: rect(0 0 0 0);
  max-height: 100%;
  position: centre;
  display: block;
  overflow: hidden
};
  zoom: 1;

.nav-collapse.opened {
  max-height: 100%;
}

.nav-toggle {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}

@media screen and (min-width: 15em) {
  .js .nav-collapse {
    position: centre;
  }
  .js .nav-collapse.closed {
    max-height: 100%;
  }
  .nav-toggle {
    display: none;
  }
}
