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: 13 additions & 1 deletion display-exercise.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@
</head>
<body>
<!-- your HTML here to implement the colored box design -->
<p>Placeholder!</p>
<div class="outer-box">
<div class="top">
<div class="green"></div>
<div class="blue"></div>
</div>

<div class="bttm">
<div class="grey"></div>
<div class="black"></div>
<div class="orange"></div>
</div>
</div>

</body>
</html>
46 changes: 46 additions & 0 deletions styles/display-page.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.outer-box {
width:800px;
height:800px;
border: 1px solid black;
font-size: 0px;
margin-left: auto;
margin-right: auto;
}

.green {

background-color: green;
height:200px;
width: 50%;
display: inline-block;
font-size: 0px;
}

.blue {
background-color: blue;
height:200px;
width: 50%;
display:inline-block;
}

.grey {
background-color: grey;
height: 300px;
width: 33.33%;
display: inline-block;
}

.black {
background-color: black;
height: 300px;
width: 33.33%;
display: inline-block;
}

.orange {
background-color: orange;
height: 300px;
width: 33.33%;
display: inline-block;

}