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

nav bar and dotted square in place #11

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
15 changes: 13 additions & 2 deletions display-exercise.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,18 @@
<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>
<!-- your HTML here to implement the colored box design
<p>Placeholder!</p>-->
<main>
<div class="parent">
<div class="centered"></div>
<div class="top green"></div>
<div class="top blue"></div>
<div class="centered"></div>
<div class="bot grey"></div>
<div class="bot black"></div>
<div class="bot gold"></div>
</div>
</main>
</body>
</html>
4 changes: 2 additions & 2 deletions float-exercise.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
<h1>Nebulas</h1>
<h3>Are they really that nebulous?</h3>

<p>Lorem ipsum Id et non est non in occaecat nostrud fugiat in proident consequat aliquip veniam pariatur pariatur <img src="images/nebula1.png"> labore laboris aliqua eu et in dolore dolore dolor eu voluptate ea irure dolore nisi in sint adipisicing aliqua ad magna consequat adipisicing mollit in ad ad qui voluptate dolore et Duis proident aliquip Duis Excepteur quis eu officia proident sit aute nisi sed cillum officia velit dolore eiusmod in aute quis enim ad minim id labore aliquip elit ea elit in tempor dolor amet exercitation in laborum sint irure commodo laborum deserunt commodo ad minim officia deserunt Excepteur aute laboris qui elit laboris id in et esse laboris culpa ut nostrud Duis nulla et laborum ullamco quis deserunt elit dolor sed proident velit sed ad in in in laborum ut incididunt dolor reprehenderit sed ullamco fugiat minim Duis consequat magna cupidatat. Lorem ipsum Id et non est non in occaecat nostrud fugiat in proident consequat aliquip veniam pariatur pariatur labore laboris aliqua eu et in dolore dolore dolor eu voluptate ea irure dolore nisi in sint adipisicing aliqua ad magna consequat adipisicing mollit in ad ad <img src="images/nebula2.png"> qui voluptate dolore et Duis proident aliquip Duis Excepteur quis eu officia proident sit aute.</p>
<p>Nisi sed cillum officia velit dolore eiusmod in aute quis enim ad minim id labore aliquip elit ea elit in tempor dolor amet exercitation in laborum sint irure commodo laborum deserunt commodo ad minim officia deserunt Excepteur aute laboris qui elit laboris id in et esse laboris culpa ut nostrud Duis nulla et laborum ullamco quis deserunt elit dolor sed proident velit sed ad in in in laborum ut incididunt dolor reprehenderit sed ullamco fugiat minim Duis consequat magna cupidatat. Lorem ipsum Id et non est non in occaecat nostrud fugiat in proident consequat aliquip veniam pariatur pariatur labore laboris aliqua eu et in dolore dolore dolor eu voluptate ea irure dolore nisi in sint adipisicing aliqua ad magna consequat adipisicing mollit in ad ad qui voluptate dolore et Duis proident aliquip Duis Excepteur quis eu officia proident sit aute nisi sed cillum officia velit dolore eiusmod in aute quis enim ad minim id labore aliquip elit ea elit in tempor dolor amet exercitation in laborum sint irure commodo laborum deserunt commodo ad minim officia deserunt Excepteur aute laboris qui elit laboris id in et esse laboris culpa ut nostrud Duis nulla et laborum ullamco quis deserunt elit dolor sed proident velit sed ad in in in laborum ut incididunt dolor reprehenderit sed ullamco fugiat minim Duis consequat magna cupidatat.</p>
<p class="p1">Lorem ipsum Id et non est non in occaecat nostrud fugiat in proident consequat aliquip veniam pariatur pariatur <img src="images/nebula1.png" class="leftimg"> labore laboris aliqua eu et in dolore dolore dolor eu voluptate ea irure dolore nisi in sint adipisicing aliqua ad magna consequat adipisicing mollit in ad ad qui voluptate dolore et Duis proident aliquip Duis Excepteur quis eu officia proident sit aute nisi sed cillum officia velit dolore eiusmod in aute quis enim ad minim id labore aliquip elit ea elit in tempor dolor amet exercitation in laborum sint irure commodo laborum deserunt commodo ad minim officia deserunt Excepteur aute laboris qui elit laboris id in et esse laboris culpa ut nostrud Duis nulla et laborum ullamco quis deserunt elit dolor sed proident velit sed ad in in in laborum ut incididunt dolor reprehenderit sed ullamco fugiat minim Duis consequat magna cupidatat. Lorem ipsum Id et non est non in occaecat nostrud fugiat in proident consequat aliquip veniam pariatur pariatur labore laboris aliqua eu et in dolore dolore dolor eu voluptate ea irure dolore nisi in sint adipisicing aliqua ad magna consequat adipisicing mollit in ad ad <img src="images/nebula2.png" class="rightimg"> qui voluptate dolore et Duis proident aliquip Duis Excepteur quis eu officia proident sit aute.</p>
<p class="p2">Nisi sed cillum officia velit dolore eiusmod in aute quis enim ad minim id labore aliquip elit ea elit in tempor dolor amet exercitation in laborum sint irure commodo laborum deserunt commodo ad minim officia deserunt Excepteur aute laboris qui elit laboris id in et esse laboris culpa ut nostrud Duis nulla et laborum ullamco quis deserunt elit dolor sed proident velit sed ad in in in laborum ut incididunt dolor reprehenderit sed ullamco fugiat minim Duis consequat magna cupidatat. Lorem ipsum Id et non est non in occaecat nostrud fugiat in proident consequat aliquip veniam pariatur pariatur labore laboris aliqua eu et in dolore dolore dolor eu voluptate ea irure dolore nisi in sint adipisicing aliqua ad magna consequat adipisicing mollit in ad ad qui voluptate dolore et Duis proident aliquip Duis Excepteur quis eu officia proident sit aute nisi sed cillum officia velit dolore eiusmod in aute quis enim ad minim id labore aliquip elit ea elit in tempor dolor amet exercitation in laborum sint irure commodo laborum deserunt commodo ad minim officia deserunt Excepteur aute laboris qui elit laboris id in et esse laboris culpa ut nostrud Duis nulla et laborum ullamco quis deserunt elit dolor sed proident velit sed ad in in in laborum ut incididunt dolor reprehenderit sed ullamco fugiat minim Duis consequat magna cupidatat.</p>
</main>

</body>
Expand Down
12 changes: 9 additions & 3 deletions position-exercise.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!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">
Expand All @@ -18,17 +19,22 @@
</head>
<body>
<!-- To finish the design, the HTML for the nav requires no additional elements, just the right CSS -->
<nav>
<img src="images/icon.png">
<!--<img src="images/outerspace_landscape.jpeg"> -->
<nav class="container">
<img src="images/icon.png" class="logo">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="display-exercise.html">display</a></li>
<li><a href="float-exercise.html">float</a></li>
</ul>
</nav>

<main>
<main class="body">
<!-- Put the HTML you need to accomplish the design -->
<div class="greenbox">
<img src="images/spacecat.png" class = "cat">
<img src="images/spacedog.png" class = "dog">
</div>
</main>
</body>
</html>
48 changes: 48 additions & 0 deletions styles/display-page.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
.parent {
font-size: 0;
height: 500px;
width: 800px;
margin-left: auto;
margin-right: auto;
margin-top: 50px
}

.centered {
margin-left: auto;
margin-right: auto;
}
.top {
height: 200px;
width: 50%;
display: inline-block;
font-size: 0px;
border: 1px solid black;
}

.green {
background-color: green;
}

.blue {
background-color: blue;
}

.bot {
height: 300px;
width: 33.33%;
border: 1px solid black;
display: inline-block;
font-size: 0px;
}

.grey {
background-color: grey;
}

.black {
background-color: black;
}

.gold {
background-color: gold;
}
23 changes: 23 additions & 0 deletions styles/float-page.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,26 @@ main {
margin-left: auto;
margin-right: auto;
}

.p1, .p2 {
position: center;
margin-right: auto;
margin-left: auto;
}

.leftimg {
float: left;
width: 300px;
padding-right: 10px;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 0px;
}

.rightimg {
float: right;
width: 300px;
padding-right: 0px;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 10px;
82 changes: 82 additions & 0 deletions styles/position-page.css
Original file line number Diff line number Diff line change
@@ -1 +1,83 @@
body {
background: url(../images/outerspace_landscape.jpeg) no-repeat center center fixed;
background-size: cover;
}

.container {
padding-right: 60px;
padding-left: 60px;
}

nav .logo {
width: 50px;
height: 50px;
border-radius: 50%;
border: 1px black solid;
margin-top: 5px;
}

ul {
list-style: none;
}
nav {
background-color: grey;
position: relative;
height: 60px;
width: 100%;
}

main {
height: 100%
width: 100%;
}

.greenbox {
height: 300px;
width: 600px;
margin-left: auto;
margin-right: auto;
border: 10px green dotted;
margin-top: 150px;
position: relative;
}

.cat {
position: absolute;
left: -90px;
bottom: 180px;
width: 200px;
}
.dog {
position: absolute;
right: -90px;
bottom: -90px;
width: 200px;
}
nav ul {
display: inline-block;
}

nav li {
display: inline-block;
position: relative;
bottom: 20px;
}
li::after {
content: " |";
}

a:link {
font-color: purple;
}

a:visited {
font-color: blue;
}

a:hover {
font-color: green;
}

a:active {
font-color: black;
}