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
9 changes: 4 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,20 @@

<div class="pageContainer">
<div class="imageContainer">
<img src="images/cookies.jpg" alt="Tray of Chocolate Chip Cookies." />
<img src="http://addapinch.com/wp-content/blogs.dir/3/files/2014/03/chocolate-no-bake-cookies-DSC_2852.jpg" alt="Plate of No Bake cookies." />
</div>
<div class="textContainer">
<h1>Cookies!</h1>
<p>My Favorite Cookies: </p>
<ul>
<li>No Bake</li>
<li>Oatmeal Raisin</li>
<li>Chocolate Chip</li>
<li>Peanut Butter</li>
<li>Christmas</li>
<li>Sugar</li>
</ul>
</div>
</div>

</body>
</html>



36 changes: 18 additions & 18 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,47 +1,48 @@

/*
/*
STYLE.CSS:
One stylesheet to rule them all.

selector { property:value }

*/

@import url(https://fonts.googleapis.com/css?family=Fredericka+the+Great|Lato);

body {
background-color: #431901;
background-color: #301c00;
}

.pageContainer {
width: 940px;
width: 970px;
margin: 20px auto 0 auto;
padding: 20px;
background-color: #fff;
background-color: #FFFFCC;
}

.imageContainer {
float: left;
width: 620px;
width: 630px;
}

.textContainer {
float: left;
float: right;
width: 300px;
margin-left: 20px;
margin-top: 20px;
}

img {
width: 100%;
width: 90%;
height: 90%
}

h1 {
font-family: 'Fredericka the Great', cursive;
font-size: 64px;
color: #411000;
}

p, li {
font-family: 'Lato', sans-serif;
font-size: 22px;
Expand All @@ -52,13 +53,12 @@ p, li {


/* ---- Advanced ---- */
/* This tag is a bit advanced for this lesson,
but is needed to wrap the pageContainer
/* This tag is a bit advanced for this lesson,
but is needed to wrap the pageContainer
around any sized content that is floated within it. */

.pageContainer:after {
.pageContainer:after {
content: " ";
display: table;
clear: both;
}