Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
20 changes: 20 additions & 0 deletions Vishal Singh/Column Drop/index.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>Class 4 part 2</title>
<link rel="stylesheet" href="styles.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<main>
<div class="mainbox">Main Box</div>
<div class="container">
<div class="box box1">Box1</div>
<div class="box box2">Box2</div>
<div class="box box3">Box3</div>
<div class="box box4">Box4</div>
</div>
</main>
</body>
</html>
68 changes: 68 additions & 0 deletions Vishal Singh/Column Drop/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
*{
text-align: center;
}

main{
line-height: 100px;
font-size: 30px;
width: 684px;
margin: 0px auto;
box-shadow: 0px 10px 50px 0px rgba(0,0,0,0.5);
}

main:hover {
box-shadow: 0px 10px 50px 0px rgba(0,0,0,0.8);
}

.container{
line-height: 150px;
font-size: 20px;
display: flex;
flex-wrap: wrap;
}

.box{
width: 50%;
height: 150px;
}

.box1{
background-color: coral;
}
.box2{
background-color: yellow;
}
.box3{
background-color: red;
}
.box4{
background-color: brown;
}
.box5{
background-color: burlywood;
}
.box6{
background-color: rosybrown;
}.box7{
background-color: lime;
}
.box8{
background-color: lavender;
}
.mainbox{
height: 100px;
width: 100%;
background-color: aquamarine;
}

@media screen and (max-width: 700px) {
main{
width: 100%;
}
}

@media screen and (max-width: 450px){
.box{
width: 100%;
}
}
12 changes: 12 additions & 0 deletions Vishal Singh/Layout Shifter/.idea/class 4 hw.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Vishal Singh/Layout Shifter/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

180 changes: 180 additions & 0 deletions Vishal Singh/Layout Shifter/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions Vishal Singh/Layout Shifter/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<div class="flex-container">
<div class="mainbox1">
grgr
</div>
<div class="mainbox2">
<div class="subbox1">
grgr
</div>
<div class="subbox2">
rgrgr
</div>
</div>
</div>
</main>
</body>
</html>
62 changes: 62 additions & 0 deletions Vishal Singh/Layout Shifter/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
html { height: 100%; }
body {height: 100%;
margin: 0px}
main{
height: 100%;
}
.flex-container{
margin: 0px auto;
width: 900px;
height: 100%;
display: flex;
flex-wrap: wrap;
}

.mainbox1{
background-color: lightgrey;
height: 100%;
width: 20%
}

.mainbox2{
height: 100%;
width: 80%
}

.subbox1{
height: 50%;
background-color: red;
width: 100%
}

.subbox2{
height: 50%;
background-color: olivedrab;
width: 100%
}

@media screen and (max-width: 900px){
.flex-container {
width: 100%;
}
}

@media screen and (max-width:500px){

html { height: auto; }
body {height: auto;
}
main{
height: auto;
}


.mainbox1{
width: 100%;
height: 300px;
}
.mainbox2{
width: 100%;
height: 1000px;
}
}
Loading