Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions WinterBatch2018/shradha - Copy/column-drop.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>column-drop</title>
<style>
.bigbox{ display:flex;
margin:0 auto;
flex-wrap:wrap;
width:500px;
height:100px;
}
.box1{ display:inline-block; background-color: cadetblue;
width:200px;
}
.box2{ display:inline-block; background-color: lightblue;
width:200px;
}
.box3{ display:inline-block; background-color: mediumslateblue;
width:200px;
}
@media (max-width: 600px){
.box1,.box2,.box3{ width:100%;}
}
@media (min-width:600px) and (max-width:900px){
.box1{ width:30%;height:300px;}
.box2{ width:70%;height:300px;}
.box3{ width:100%;height:200px;}
}
@media (min-width:900px){
.box1{ width:30%;height:300px;}
.box2{ width:40%;height:300px;}
.box3{ width:30%;height:300px;}
}

</style>
</head>
<body>
<div class="bigbox">
<div class="box1"></div>
<div class="box2"></div>
<div class="box3"></div>
</div>
</body>
</html>
18 changes: 18 additions & 0 deletions WinterBatch2018/shradha - Copy/layout-shifter.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>layout-shifter</title>
<link href="style.css" rel="stylesheet">
<meta name="viewport" content="width=width-device,initial-scale=1">
</head>
<body>
<div class="bigbox">
<div class="box1"></div>
<div class="b">
<div class="box2"></div>
<div class="box3"></div>
</div>
</div>
</body>
</html>
52 changes: 52 additions & 0 deletions WinterBatch2018/shradha - Copy/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
.bigbox{ height:100%;
margin:0 auto;
width:500px;
display:flex;
flex-wrap:wrap;
<!--flex-direction: row;-->
justify-content: center;
}
.box1,.box2,.box3{<!--display:inline-block;-->
width:300px;
height:100px;
}
.b { width:100%;
}
.box1{ background-color: mediumslateblue;

}
.box2{ background-color: dimgrey;

}
.box3{ background-color: darkgrey;

}
@media screen and (max-width:600px){
.bigbox{ width:100%;}
.box1,.box2,.box3{
width:100%;
height:200px;
}
}




@media screen and (min-width:600px) and (max-width:900px){
.bigbox{ width:100%;}
.box1{ width:20%; height:400px;}
.box2{
width: 100%; height:200px;
}
.box3{ width:100%; height:200px;}
.b{ width:80%;height:400px;}
}
@media screen and (min-width:900px){
.bigbox{ width:75%;}
.box1{ width:20%; height:400px;}
.box2{
width: 100%; height:200px;
}
.box3{ width:100%; height:200px;}
.b{ width:80%;height:400px;}
}