title: how can I create a responsive site with media?
body: <p>Hey guys I'm slowly learning how to make a site and I have read a lot about @media to make a responsive site but everytime I try it, it just doesnt work for me. I placed my html and the responsive code I worked up so far and im getting no where with it. In the responsive code I tried to make my header image cover 100% of with and have my nav bar come down vertically but what I wrote didnt work out. I did a lot of research on it but if anyonee could help me out I would be truly greatful</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>/*----Media----*/
  @media only screen and (min-width: 150px) and (max-width: 1200px){
   .body{
    width:90%;
    font-size:95%;
   }
   
   .mainHeader img{
    width: 100%;
   }
  
   .mainHeader nav{
    height:160px;
   }
   
   .mainHeader nav ul{
    float:left;
   }
  
   .mainHeader nav ul li{
    width: 100%;
    text-align:center;
   }
  
   .mainHeader nav a:link, .mainHeader nav a:visited {
    padding: 10px 25px;
    height:20px;
    display: block;
   }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  
  &lt;head&gt;
   &lt;meta charset="utf-8"/&gt;
   &lt;title&gt;Momobear&lt;/title&gt;
   &lt;link rel="stylesheet" href="style.css"&gt;
   &lt;link rel="stylesheet" href="responsive.css"&gt;
   &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
   &lt;!-- Add jQuery library --&gt;
   &lt;script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"&gt;&lt;/script&gt;
   &lt;!-- Add fancyBox --&gt;
   &lt;link rel="stylesheet" href="source/jquery.fancybox.css?" type="text/css" media="screen" /&gt;
   &lt;script type="text/javascript" src="source/jquery.fancybox.pack.js"&gt;&lt;/script&gt;
   &lt;!-- Separate CSS File --&gt;
  
  &lt;/head&gt;
  &lt;body class="body"&gt;
   &lt;header id="mainHeader" class="mainHeader"&gt;
    &lt;img src="pics\art1.jpg"&gt;
   
    &lt;nav id="navBar"&gt;
     &lt;ul&gt;
      &lt;li&gt;&lt;a href="index.html"&gt;WELCOME&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="contact.html"&gt;CONTACT&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a class="active" href="artwork.html"&gt;ART WORK&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="blog.html"&gt;BLOG&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="resources.html"&gt;RESOURCES&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="about.html"&gt;ABOUT&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="shop.html"&gt;SHOP&lt;/a&gt;&lt;/li&gt;
     &lt;/ul&gt;
    &lt;/nav&gt;
   &lt;/header&gt;
   &lt;hr/&gt;
   
   &lt;div id="artWorkSection"&gt;
    
    &lt;nav id="bottomNavBar" class="artworkBottomNav"&gt;
     &lt;ul&gt;
      &lt;li&gt;&lt;a class="active" href="artwork.html"&gt;ART WORK&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="geometry.html"&gt;GEOMETRY&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="illumination.html"&gt;ILLUMINTION&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="islimi.html"&gt;ISLIMI&lt;/a&gt;&lt;/li&gt;
     &lt;ul&gt;
    &lt;/nav&gt;
    
    &lt;section id="section1"&gt;
     &lt;div id="artworkArticlesLeft"&gt;
      &lt;article id="artworkArticle1"&gt;
       &lt;header&gt;
        &lt;h1&gt;Art Work&lt;/h1&gt;
       &lt;/header&gt;
       &lt;p&gt;Welcome to the main gallery, Welcome to the main gallery, which showcases my completeWelcome to the main gallery, which showcases my completeWelcome to the main gallery, which showcases my completeWelcome to the main gallery, which showcases my completeWelcome to the main gallery, which showcases my completewhich showcases my complete&lt;/p&gt;
  
      &lt;/article&gt;
     &lt;/div&gt;
     &lt;div id="artworkArticlesRight"&gt;
      &lt;div class="verticalLine"&gt;
       &lt;article id="artworkArticle2"&gt;
        &lt;p&gt;Welcome to the main gallery, which showcaWelcome to the main gallery, which showcases my completeWelcome to the main gallery, which showcases my completeWelcome to the main gallery, which showcases my completeses my completed work.  &lt;/p&gt;
        &lt;/br&gt;
        &lt;p&gt;Please get in touch via the c&lt;/p&gt;
       &lt;/article&gt;
      &lt;/div&gt;
     &lt;/div&gt;
    &lt;/section&gt;
   &lt;/div&gt;
  
  
   &lt;div class="gallery"&gt;
    &lt;a class="fancybox" rel="group" href="pics\art1.jpg"&gt;
     &lt;img src="pics\art1.jpg" width="400" height="300" &gt;&lt;/a&gt;
    &lt;a class="fancybox" rel="group" href="pics\art2.jpg"&gt;
     &lt;img src="pics\art2.jpg" width="400" height="300" &gt;&lt;/a&gt;
    &lt;a class="fancybox" rel="group" href="pics\art3.jpg"&gt;
     &lt;img src="pics\art3.jpg" width="400" height="300" &gt;&lt;/a&gt;
    &lt;a class="fancybox" rel="group" href="pics\art4.jpg"&gt;
     &lt;img src="pics\art4.jpg" width="400" height="300" &gt;&lt;/a&gt;
    &lt;a class="fancybox" rel="group" href="pics\art1.jpg"&gt;
     &lt;img src="pics\art1.jpg" width="400" height="300" &gt;&lt;/a&gt;
    &lt;a class="fancybox" rel="group" href="pics\art2.jpg"&gt;
     &lt;img src="pics\art2.jpg" width="400" height="300" &gt;&lt;/a&gt;
    &lt;a class="fancybox" rel="group" href="pics\art3.jpg"&gt;
     &lt;img src="pics\art3.jpg" width="400" height="300" &gt;&lt;/a&gt;
    &lt;a class="fancybox" rel="group" href="pics\art4.jpg"&gt;
     &lt;img src="pics\art4.jpg" width="400" height="300" &gt;&lt;/a&gt;
    &lt;a class="fancybox" rel="group" href="pics\art4.jpg"&gt;
     &lt;img src="pics\art4.jpg" width="400" height="300" &gt;&lt;/a&gt;
   &lt;/div&gt;
  
  &lt;script type="text/javascript"&gt;
  $(document).ready(function() {
   $(".fancybox").fancybox();
  });
   
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;﻿</code></pre>
  </div>
  </div>
  </p>