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
14 changes: 12 additions & 2 deletions display-exercise.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,17 @@
<link rel="stylesheet" type="text/css" href="styles/display-page.css">
</head>
<body>
<!-- your HTML here to implement the colored box design -->
<p>Placeholder!</p>

<main>

<div class='toybox green'></div>
<div class='toybox blue'></div>


<div class='toychest grey'></div>
<div class='toychest black'></div>
<div class='toychest yellow'></div>

</main>
</body>
</html>
53 changes: 53 additions & 0 deletions styles/display-page.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
main{
padding: 30px;
font-size: 0;
}

.toybox {
width: 800px;
height: 200px;
display: inline-block;
font-size: 0px;
margin-left: auto;
margin-right:auto;
}

.green {
width: 50%;
background-color: green;
border: 1px black;
}

.blue {
width: 50%;
background-color: blue;
border: 1px black;
}

.toychest {
width: 800px;
height: 300px;
display: inline-block;
font-size: 0px;
margin-left: auto;
margin-right:auto;
}

.grey {
width: 33.33%;
background-color: grey;
border: 1px black;
}

.black {
width: 33.33%;
background-color: black;
border: 1px black;
}

.yellow{
width: 33.33%;
background-color: orange;
border: 1px black;

}