AIT Experiment no 3

AIM- Create a responsive form using CSS media query

<meta name="viewport" content="width=device-width, initial-scale=1.0">
* {  box-sizing: border-box;  }
.row::after {
   content: "";
   clear: both;
   display: table;  }
[class*="col-"] {
   float: left;
   padding: 25px;   }
html {
   font-family: "Lucida Sans", sans-serif;  }
.header {
   background-color: ORANGE;
   color: WHITE;
   padding: 07px;  }
.menu ul {
   list-style-type: none;
   margin: 0;
   padding: 0;  }
.menu li {
   padding: 8px;
   margin-bottom: 7px;
   background-color: #33b5e5;
   color: PURPLE;
   box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);    }
.menu li:hover {
   background-color: #0099cc;  }
.aside {
   background-color: BLUE;
   padding: 20px;
   color: WHITE;
   text-align: center;
   font-size: 14px;
   box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);  }
.footer {   background-color: GREEN;
   color: PINK;
   text-align: center;
   font-size: 20px;
   padding: 15px; }
<div class="header">
<div class="row">
<div class="col-3 col-m-3 menu">
   <li>The Flight</li>
   <li>The City</li>
   <li>The population</li>
   <li>The Food</li>
<div class="col-6 col-m-9">
 <h1>The COUNTRY</h1>
<P> India is a vast South Asian country with diverse terrain – from Himalayan peaks to Indian Ocean coastline – and history reaching back 5 millennia. In the north, Mughal Empire landmarks include Delhi’s Red Fort complex and massive Jama Masjid mosque, plus Agra’s iconic Taj Mahal mausoleum. </p>
<div class="col-3 col-m-12">
 <div class="aside">
   <p>It is the 7th-largest country by area,the 2nd-most populous country in the world.</p>
   <p>INDIA is a country on asia Continent.</p>
   <p>The Indian independence movement was a movement from 1857 until 15 August 1949</p>
<div class="footer">
 <p>Resize the browser window to see how the content respond to the resizing.</p>


Click here to download
AIT Experiment no 3 AIT Experiment no 3 Reviewed by akshay salve on 9:22 PM Rating: 5

No comments:

Powered by Blogger.