Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

display page #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
36 changes: 33 additions & 3 deletions display-exercise.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,37 @@
<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>
<!DOCTYPE html>
<html>
<head>
<title>CSS Layout Exercises | position property</title>
<meta charset="utf-8" name="description" content="Layout exercise on `position` property for Thinkful's front end web development course">

<!-- fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">

<!-- reset -->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.1.1/normalize.min.css">

<!-- styles -->
<link rel="stylesheet" type="text/css" href="styles/main.css">
<link rel="stylesheet" type="text/css" href="styles/display-page.css">
</head>
<body>
<main>
<div class="box-parent">
<div class='centered'>
<div class='box box_half green'></div>
<div class='box box_half blue'></div>
</div>
<div class='centered'>
<div class='box box_third grey'></div>
<div class='box box_third black'></div>
<div class='box box_third orange'></div>
</div>
</div>
</main>
</body>
</html>
</body>
</html>
</html>
51 changes: 51 additions & 0 deletions styles/display-page.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
main {
font-size: 0;
}


.box-parent {
margin-top: 90px;
margin-left: auto;
margin-right: auto;
width: 800px;
}

.box {
border: 1px solid black;
display: inline-block;
}

.box_half {
width: 50%;
height: 200px;
}

.box_third {
width: 33.33%;
height: 300px;
}

.black {
background-color: black;
border: 1px solid;
}

.green {
background-color: green;
}

.grey {
background-color: grey;
}

.blue {
background-color: blue;
}

.orange {
background-color: orange
}

.centered {
text-align: center;
}