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
80 changes: 80 additions & 0 deletions Shreya Resposive Designs/columndrop.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
*{
margin: 0px;
overflow-x: hidden;
}

.align{
width: 100%;
height: 50px;
background-color: blue;
}

.container{
display: flex;
flex-wrap: wrap;
}

.box{
width: 25%;
height: 100vh;
}

.box2{
background-color: grey;
width: 50%;
}

.box1{
background-color: #0dccfc;
width: 25%;
}

.box3{
background-color: orange;
width: 25%;
}

@media(min-width: 720px) and (max-width: 900px){
.box1{
width: 33.33%;
}

.box2{
width: 66.66%;
}

.box3{
width: 100%;
height: 200px;
}
}

@media(min-width: 480px) and (max-width: 720px){
.box{
width: 100%;
height: 321px
}

.box2{
order: 0;
}

.box1{
order: 1;
}

.box3{
order: 2;
}
}

@media(max-width: 480px){
.box{
width: 100%;
height: 200px;
}

.box1{
height: 120vh;
}
}
24 changes: 24 additions & 0 deletions Shreya Resposive Designs/columndrop.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="columndrop.css" />
<!-- <script src="main.js"></script> -->
</head>
<body>
<header>
<nav>
<ul class="align">
</ul>
</nav>
</header>
<div class="container">
<div class="box box1"></div>
<div class="box box2"></div>
<div class="box box3"></div>
</div>
</body>
</html>
89 changes: 89 additions & 0 deletions Shreya Resposive Designs/layoutshifter.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
*{
margin: 0;
box-sizing: border-box;
}
.container{
display: flex;
flex-wrap: wrap;
justify-content: center;
}

.box{
height: 100vh;
}

.box1{
width: 29%;
background-color: teal;
}

.box2{
width: 70%;
}

.box3{
width: 100%;
height: 50%;
background-color: black;
}


.box4{
width: 100%;
height: 50%;
background-color: green;
}


@media(min-width: 480px) and (max-width: 900px){
.container{
width: 100%;
}
.box1{
width: 100%;
height: 200px;
}

.box2{
width: 100%;
height: 600px;
}

.box3{
width: inherit;
height: 40%;
}

.box4{
width: inherit;
height: 60%;
}
}

@media(max-width: 480px){
.container{
width: 100%;
}

.box1{
width: 100%;
height: 200px;
}

.box2{
width: 100%;
height: 500px;
}

.box2 > .box3{
width: inherit;
height: 150px;
}

.box2 > .box4{
width: inherit;
height: 350px;
}
}

/* calc function is used to calculate the calculation between two different unit */
19 changes: 19 additions & 0 deletions Shreya Resposive Designs/layoutshifter.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="layoutshifter.css" />
</head>
<body>
<div class="container">
<div class="box box1"></div>
<div class="box box2">
<div class="box-in box3"></div>
<div class="box-in box4"></div>
</div>
</div>
</body>
</html>
66 changes: 66 additions & 0 deletions Shreya Resposive Designs/mostlyfluid.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
.container{
display: flex;
flex-wrap: wrap;
justify-content: center;
/* border: 2px solid black; */
margin: 0 auto;
}

.box{
width: 25%;
height: 200px;
}

.box1{
width: 60%;
background-color: rebeccapurple;
}

.box2{
width: 40%;
background-color: red;
}

.box3{
background-color: aqua;
}

.box4{
background-color: lightcoral;
}

.box5{
background-color: steelblue;
}

.box6{
background-color: rgb(150, 16, 139);
}

@media(max-width: 480px){
.box{
width: 100%;
}

.box1{
height: 100vh;
}
}

@media(min-width: 480px) and (max-width: 720px){
.box{
width: 50%;
}
.box1{
width: 100%;
}
.box6{
width: 100%;
}
}

@media(min-width: 720px){
.container{
width: 720px;
}
}
20 changes: 20 additions & 0 deletions Shreya Resposive Designs/mostlyfluid.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="mostlyfluid.css" />
</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 class="box box6"></div>
</div>
</body>
</html>