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
Binary file added .DS_Store
Binary file not shown.
24 changes: 15 additions & 9 deletions p1/styles/main.css
Original file line number Diff line number Diff line change
@@ -1,32 +1,38 @@
/* CURRENTLY IN: styles/main.css */

html, body {
/*html, body {
height: 100%;
}

body {
min-height: 100%;
}

*/
html, body {
height: 100%;
}
.container {
display:flex;
height: 100%;
}

.column {
float: left;
box-sizing: border-box;

min-height: 100%;
display: flex;

}

.column-one-third {
width: 33.3333%;

background-color: pink;
}

.column-two-third {
width: 66.66663%;

background-color: black;
background-color: black;
}

/*

.col-2 { and so on you divide depending on the column you like col-12 calc(12 * 8.3333%)
width: calc(2 * 8.3333%);
}
31 changes: 29 additions & 2 deletions p2/styles/main.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* CURRENTLY IN: styles/main.css */

html, body {
/* html, body {
height: 100%;
}

Expand All @@ -15,7 +15,7 @@ body {
.row {
width: 100%;
min-height: 100px;

background-color: yellow;
}

Expand All @@ -36,4 +36,31 @@ body {
width: 66.66663%;

background-color: black;
} */
html, body {
height: 100%;
}
.container {
display:flex;
height: 450px;
}

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

.column-one-third {
width: 33.3333%;
background-color: pink;
}

.column-two-third {
width: 66.66663%;
background-color: black;
}
.row {
display: flex;
background-color: yellow;
height: 15%;
}
24 changes: 22 additions & 2 deletions p3/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!-- <!doctype html>
<html>
<head>
<meta charset='utf-8'>
Expand All @@ -17,4 +17,24 @@
</div>
<div class="row"></div>
</body>
</html>
</html> -->
<!doctype html>
<html>
<head>
<title>Problem 3</title>
<link rel='stylesheet' href='styles/main.css'>
</head>
<body>
<div class='row'>
<div class='col col-12 yellow'></div>
</div>
<div class='row height-450px'>
<div class='col col-3 green'></div>
<div class='col col-3 red'></div>
<div class='col col-6 pink'></div>
</div>
<div class='row'>
<div class='col col-12 yellow'></div>
</div>
</body>
</html>
100 changes: 92 additions & 8 deletions p3/styles/main.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
/* CURRENTLY IN: styles/main.css */

html, body {
/* html, body {
height: 100%;
}

body {
min-height: 100%;
}

.container {
height: 450px;
}
Expand All @@ -28,7 +24,6 @@ body {

.column-one-third {
width: 33.3333%;

background-color: pink;
}

Expand All @@ -52,5 +47,94 @@ body {

.column-green {
background-color: green;
}

} */
* {
box-sizing: border-box;
margin: 0;
}

html, body {
height: 100%;
}

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

.full {
height: 100%;
}

.col {
width: 8.3333%;
min-height: 100px;
}

.col-2 {
width: calc(2 * 8.3333%);
}

.col-3 {
width: calc(3 * 8.3333%);
}

.col-4 {
width: calc(4 * 8.3333%);
}

.col-5 {
width: calc(5 * 8.3333%);
}

.col-6 {
width: calc(6 * 8.3333%);
}

.col-7 {
width: calc(7 * 8.3333%);
}

.col-8 {
width: calc(8 * 8.3333%);
}

.col-9 {
width: calc(9 * 8.3333%);
}

.col-10 {
width: calc(10 * 8.3333%);
}

.col-11 {
width: calc(11 * 8.3333%);
}

.col-12 {
width: calc(12 * 8.3333%);
}

.yellow {
background-color: yellow;
}

.green {
background-color: green;
}

.red {
background-color: red;
}

.pink {
background-color: pink;
}

.black {
background-color: black;
}

.height-450px {
height: 450px;
}
71 changes: 69 additions & 2 deletions p4/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!-- <!doctype html>
<html>
<head>
<meta charset='utf-8'>
Expand Down Expand Up @@ -56,4 +56,71 @@
</div>
</div>
</body>
</html>
</html> -->

<!doctype html>
<html>

<head>
<title>Problem 4</title>
<link rel='stylesheet' href='styles/main.css'>
</head>

<body>

<div class='row'>
<div class='col yellow'></div>
<div class='col col-3 green'></div>
<div class='col col-3 red'></div>
<div class='col col-4 pink'></div>
<div class='col yellow'></div>
</div>


<div class='row'>
<div class='col yellow'></div>
<div class='col col-4 pink'></div>
<div class='col col-6 black'></div>
<div class='col yellow'></div>
</div>

<div class='row'>
<div class='col yellow'></div>
<div class='col col-3 green'></div>
<div class='col col-3 red'></div>
<div class='col col-4 pink'></div>
<div class='col yellow'></div>
</div>

<div class='row'>
<div class='col yellow'></div>
<div class='col col-4 pink'></div>
<div class='col col-6 black'></div>
<div class='col yellow'></div>
</div>

<div class='row'>
<div class='col yellow'></div>
<div class='col col-3 green'></div>
<div class='col col-3 red'></div>
<div class='col col-4 pink'></div>
<div class='col yellow'></div>
</div>
<div class='row'>
<div class='col yellow'></div>
<div class='col col-4 pink'></div>
<div class='col col-6 black'></div>
<div class='col yellow'></div>
</div>
<div class='row'>
<div class='col yellow'></div>
<div class='col col-3 green'></div>
<div class='col col-3 red'></div>
<div class='col col-4 pink'></div>
<div class='col yellow'></div>
</div>


</body>

</html>
Loading