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
17 changes: 17 additions & 0 deletions Shashank Singh/Box.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Box</title>
<link rel="stylesheet" href="ResponsiveSite.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class="container">
<div class="box box1"></div>
<div class="box box2"></div>
<div class="box box3"></div>

</div>
</body>
</html>
64 changes: 64 additions & 0 deletions Shashank Singh/Flex.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
.container{
display: flex;
flex-wrap: wrap;
width: 600px;
}
.box{
width: 100%;
height: 200px;
}

.box1{
background-color: palevioletred;
}

.box2{
background-color: crimson;
}

.box3{
background-color: darkkhaki;
}

.box4{
background-color: aqua;
}

.box5{
background-color: darkgreen;
}

.box6{
background-color: fuchsia;
}
.box7{
background-color: navy;
}

.box8{
background-color: darkgoldenrod;
}

.box9{
background-color: chocolate;
}


@media screen and (min-width:420px) {
.box.box1{
width: 100%;
}

.box{
width: 50%;
}

}

@media screen and (min-width: 720px) {
.container{
margin: 0 auto;
}


}
24 changes: 24 additions & 0 deletions Shashank Singh/Flex.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Flex</title>
<link rel="stylesheet" href="Flex.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</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 class="box box7"></div>
<div class="box box8"></div>
<div class="box box9"></div>

</div>
</body>
</html>
48 changes: 48 additions & 0 deletions Shashank Singh/Fluid.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

.container{
display: flex;
flex-wrap: wrap;
max-width: 600px;
}

.box{
width: 100%;
height: 200px;
}
.box1{
background-color: palevioletred;
}

.box2{
background-color: crimson;
}

.box3{
background-color: darkkhaki;
}

.box4{
background-color: aqua;
}

.box5{
background-color: darkgreen;
}

.box6{
background-color: fuchsia;
}

@media screen and (min-width: 720px) {
.container{
margin: 0 auto;
}

}

@media screen and (min-width:600px ) {
.container{
margin: 0 auto;
}
.box.box1{}
}
20 changes: 20 additions & 0 deletions Shashank Singh/Fluid.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Fluid</title>
<link rel="stylesheet" href="Fluid.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</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>