Skip to content

Display Properties #22

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

Open
wants to merge 6 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
33 changes: 19 additions & 14 deletions display-exercise.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
<!DOCTYPE html>
<html>
<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">
+ <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">
@@ -31,4 +31,4 @@
<!-- Put the HTML you need to accomplish the design -->
<head>
<title>CSS Layout Exercises | display property</title>
<meta charset="utf-8" name="description" content="Layout exercise on `display` 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">
<!-- your styles will go in display-page.css -->
<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>
<div class='container'>
<div class='onerow'>
<div class='box green'></div>
<div class='box blue'></div>
</div>
<div class='tworow'>
<div class='box gray'></div>
<div class='box black'></div>
<div class='box gold'></div>
</div>
</div>
</body>
</html>
1 change: 1 addition & 0 deletions gh-pages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

62 changes: 62 additions & 0 deletions styles/display-page.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
main{
/*padding-top: 100px;*/
/*font-size: 0px;*/
/*display: flex;*/
/*align-content: center;*/
}


.container {
max-width: 800px;
/*max-height: 500px; */
display: block;
margin: auto;
margin-top: 100px;

}

.box {
border: 1px solid black;
}

.onerow {
display: flex;
width: 800px;
height: 200px;
}

.tworow {
display: flex;
width: 800px;
height: 300px;
}

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

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

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

.gold {
background-color: gold;
width: 33.33%;
}