Commit c1ad9fb7 by Ajmal.S

grid layout modified

parent 1137cd30
body {
margin: 0;
font-family: "Open Sans", sans-serif;
color: #fff;
font-size: 14px;
}
hr {
border: 1px solid #fff;
}
.info {
text-align: left;
padding: 10% 0 10%;
width: 50%;
}
.logo {
position: absolute;
top: 2%;
left: 8%;
}
figure {
margin: 0;
position: relative;
min-height: 20em;
max-height: 25em;
}
figure img {
width: 100%;
height: 100%;
object-fit: contain;
object-position: 80%;
}
.grids {
display: grid;
width: auto;
}
.grid {
padding: 10%;
min-height: 400px;
height: 100vh;
max-height: 700px;
box-sizing: border-box;
overflow: hidden;
display: grid;
}
.grid:nth-of-type(1) {
background-color: #41ca6e;
}
.grid:nth-of-type(2) {
background-color: #fab153;
}
.grid:nth-of-type(3) {
background-color: #7277d5;
}
.grid:nth-of-type(4) {
background-color: #f87d51;
}
.grid:nth-of-type(5) {
background-color: #ed5466;
}
.grid:nth-of-type(6) {
background-color: #4ec2e7;
}
/* RESPONSIVE CSS */
@media screen and (min-width: 540px) {
.grid {
grid-auto-flow: column;
max-height: 500px;
}
}
@media screen and (min-width: 768px) {
.grids {
grid-template-columns: repeat(2, 1fr);
}
.logo {
left: 2%;
}
.grid {
max-height: 300px;
}
}
@media screen and (min-width: 1440px) {
.grids {
grid-template-columns: repeat(3, 1fr);
}
.grid {
max-height: 480px;
}
}
/* END RESPONSIVE CSS */
\ No newline at end of file
...@@ -5,67 +5,78 @@ ...@@ -5,67 +5,78 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>Grid-Layout</title> <title>Grid-Layout</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link rel="stylesheet" href="assets/css/style.css"> <link rel="stylesheet" href="assets/css/grid.css">
</head> </head>
<body> <body>
<div class="grids"> <div class="grids">
<div class="grid col-1"> <div class="grid">
<div class="logo"> <div class="logo">
<img src="assets/img/logo-aoc.png" width="85" height="30"> <img src="assets/img/logo-aoc.png" width="85" height="30">
</div> </div>
<div class="info"> <div class="info">
<img src="assets/img/logo-f-secure.png" width="50" height="50"> <img src="assets/img/logo-f-secure.png" width="50" height="50">
<p>Astonishing <br>features requires <br>worry-free security</p> <p>Astonishing features requires worry-free security</p>
<div class="underline"></div> <hr />
<span>1 Year Free Mobile Security</span> <p>1 Year Free Mobile Security</p>
</div> </div>
<img src="assets/img/image-1.png" align="right" class="c-margin-t"> <figure>
<img src="assets/img/image-1.png">
</figure>
</div> </div>
<div class="grid col-2"> <div class="grid">
<div class="info"> <div class="info">
<img src="assets/img/logo-digitainment.png" width="55" height="40"> <img src="assets/img/logo-digitainment.png" width="55" height="40">
<p>Be hooked!</p> <p>Be hooked!</p>
<div class="underline"></div> <hr />
<span>2000+ Movies from Bollywood</span> <p>2000+ Movies from Bollywood</p>
</div> </div>
<img src="assets/img/image-2.png" align="right"> <figure>
<img src="assets/img/image-2.png">
</figure>
</div> </div>
<div class="grid col-3"> <div class="grid">
<div class="info"> <div class="info">
<img src="assets/img/logo-adaptxt.png" width="90" height="30"> <p>The best things in life are free</p>
<p>The best things in <br>life are free</p> <hr />
<div class="underline"></div> <p>Free Mobile Pouch</p>
<span>Free Mobile Pouch</span>
</div> </div>
<img src="assets/img/image-3.png" align="right"> <figure>
<img src="assets/img/image-3.png">
</figure>
</div> </div>
<div class="grid col-4"> <div class="grid">
<div class="info"> <div class="info">
<img src="assets/img/logo-hungama.png" width="90" height="20"> <img src="assets/img/logo-hungama.png" width="90" height="20">
<p>The thump <br> never ends here</p> <p>The thump never ends here</p>
<div class="underline"></div> <hr />
<span>1000’s of songs</span> <p>1000’s of songs</p>
</div> </div>
<img src="assets/img/image-4.png" align="right"> <figure>
<img src="assets/img/image-4.png">
</figure>
</div> </div>
<div class="grid col-5"> <div class="grid">
<div class="info"> <div class="info">
<img src="assets/img/logo-adaptxt.png" width="90" height="30"> <img src="assets/img/logo-adaptxt.png" width="90" height="30">
<p>Being globally you</p> <p>Being globally you</p>
<div class="underline"></div> <hr />
<span>21 Indian & Foreign Languages</span> <p>21 Indian & Foreign Languages</p>
</div> </div>
<img src="assets/img/image-5.png" align="right"> <figure>
<img src="assets/img/image-5.png">
</figure>
</div> </div>
<div class="grid col-6"> <div class="grid">
<div class="info"> <div class="info">
<img src="assets/img/logo-read-where.png" width="50" height="45"> <img src="assets/img/logo-read-where.png" width="50" height="45">
<p>For the wise</p> <p>For the wise</p>
<div class="underline"></div> <hr />
<span>1000 pts Discount<br>on Subscription</span> <p>1000 pts Discount on Subscription</p>
</div> </div>
<img src="assets/img/image-6.png" align="right" class="c-margin-t"> <figure>
<img src="assets/img/image-6.png">
</figure>
</div> </div>
</div> </div>
</body> </body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment