Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added responsive design #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
84 changes: 84 additions & 0 deletions Anshul Gautam/Column Drop/columndrop.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<!-- ANSHUL GAUTAM
IIIT-D
-->

<!DOCTYPE html>
<html>
<head>
<title>
COLUMNN DROP
</title>
<style>
.container { /*parent*/
display: flex;
flex-wrap: wrap;
max-width: 900px;
margin: 0 auto;
}
.box {
height: 200px;
width: 100%;
}
.box1 {
background-color: navy;
order: 1;
}
.box2 {
background-color: tomato;
order: 2;
}
.box3 {
background-color: skyblue;
order: 3;
}
.box4 {
background-color: yellow;
order: 4;
}
.box5 {
background-color: green;
order: 5;
}
@media screen and (min-width: 600px) {
.box1 {
width: 60%;
order: 2;
}
.box2 {
width: 40%;
order: 1;
}
.box3 {
order: 3;
width:
}
.box4 {
order: 4;
}
.box5 {
order: 5;
}
}
@media screen and (min-width: 800px) {
.box1 {
width: 60%;
}
.box2 {
width: 20%;
}
.box3 {
width: 20%;
}
}
</style>
</head>
<body>
<div class="container">
<div class="box box1"></div>
<div class="box box2"></div>
<div class="box box3"></div>
<div class="box box4"></div>
<div class="box box5"></div>
</div>
</body>
</html>
88 changes: 88 additions & 0 deletions Anshul Gautam/Layout Shifter/layoutshifter.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<!-- ANSHUL GAUTAM
IIIT-D
-->

<!DOCTYPE html>
<html>
<head>
<title>
LAYOUT SHIFTER
</title>
<style>
.container { /*parent*/
display: flex;
flex-wrap: wrap;
max-width: 1200px;
margin: 0 auto;
}
.box {
height: 242px;
width: 100%;
}
.box1 {
background-color: navy;
color: lavender;
max-height: 700px;
overflow-y: scroll;
}

.box3 {
background-color: skyblue;
font-size: 20px;
}
.box4 {
background-color: yellow;
}
@media screen and (min-width: 600px) {
.container {
height: 700px;
}
.box1 {
height: 100%;
width: 20%;
}
.box2 {
width: 80%;
height: 100%;
}
.box3 {
height: 50%;
}
.box4 {
height: 50%;
}
}
</style>
</head>
<body>
<div class="container">
<div class="box box1"> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
<div class="box box2">
<div class="box box3"> <strong> UKRAINE </strong></div>
<div class="box box4"></div>
</div>
</div>
</body>
</html>
66 changes: 66 additions & 0 deletions Anshul Gautam/Mostly Fluid/mostlyfluid.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<!-- ANSHUL GAUTAM
IIIT-D
-->

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>
MOSTLY FLUID
</title>
<style>
.container { /*parent*/
display: flex;
flex-wrap: wrap;
max-width: 900px;
margin: 0 auto;
}
.box {
height: 200px;
width: 100%;
}
.box1 {
background-color: navy;
}
.box2 {
background-color: tomato;
}
.box3 {
background-color: skyblue;
}
.box4 {
background-color: yellow;
}
.box5 {
background-color: green;
}
@media screen and (min-width: 600px) {
.box2, .box3, .box4, .box5 {
width: 50%;
}
}
@media screen and (min-width: 800px) {
.box1 {
width: 60%;
}
.box2 {
width: 40%;
}
.box3, .box4, .box5 {
width: 33.33%;
}
}

</style>
</head>
<body>
<div class="container">
<div class="box box1"></div>
<div class="box box2"></div>
<div class="box box3"></div>
<div class="box box4"></div>
<div class="box box5"></div>
</div>
</body>
</html>