zeek30.html

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Media Query</title>
    <style>
        .box{
                   font-size60px;
                   text-aligncenter;
                   displaynone;
                   }
      @media (max-width:350px){
       #box1{displayblock;colordarkblue;background-colorcyan;}
      }
      @media (min-width:350px) and (max-width:500px){
       #box2{displayblock;colorrgb(148470);background-colorrgb(2512550);}
      }
      @media (min-width:500px) and (max-width:1000px){
       #box3{displayblock;colorrgb(09012);background-colorrgb(194255115);}
      }
      @media (min-width:1000px) and (max-width:10000px){
       #box4{displayblock;colorrgb(21200);background-colorrgb(240186125);}
      }
  li{colordarkred;}
    </style>
</head>
<body>
    <div class="container">
    <div class="box" id="box1">I am an IPhone</div>
    <div class="box" id="box2">I am a Mobile Phone</div>
    <div class="box" id="box3">I am a Tablet Phone</div>
    <div class="box" id="box4">I am a Desktop Computer</div>

    </div>
    <h1>Media Query</h1>
    <ul style="font-size:30px;color: rgb(13, 13, 197); ">After inspecting this page in
 responsive design we see
    <li>Width-(0 to 350 px) box1-(I am an IPhone) is displayed</li>
    <li>Width-(350 to 500 px) box2-((I am a MobilePhone) is displayed</li>
    <li>Width-(500 to 1000 px) box3-(I am a Tablet Phone) is displayed</li>
    <li>Width-(1000 to 10000px) box4-(I am a Desktop Computer) displayed</li>
       This is what we can accomplish by media Query
     </ul>
    
</body>
</html>

Comments

Popular posts from this blog

INDEX OF ZEEK HTML,CSS and JS