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
Binary file added images/cookie-monster.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 5 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>

<link href="https://fonts.googleapis.com/css?family=Cookie|Cabin" rel="stylesheet">
<title>My Favorite Cookies</title>

<link href="style.css" rel="stylesheet" type="text/css" />
Expand All @@ -13,22 +13,20 @@
<!-- WEB PAGE CONTENT HERE -->

<div class="pageContainer">
<div class="imageContainer">
<img src="images/cookies.jpg" alt="Tray of Chocolate Chip Cookies." />
<div class="imageContainer">
<img src="images/cookie-monster.jpg" alt="Cookie Monster Had an Addiction." />
</div>
<div class="textContainer">
<h1>Cookies!</h1>
<p>My Favorite Cookies: </p>
<ul>
<li>Chocolate Chip</li>
<li>Peanut Butter</li>
<li>Christmas</li>
<li>World Peace</li>
<li>Chocolate Chunk</li>
</ul>
</div>
</div>

</body>
</html>



25 changes: 12 additions & 13 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@

/*
/*
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;
}

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

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

.textContainer {
float: left;
width: 300px;
Expand All @@ -35,13 +35,13 @@ body {
img {
width: 100%;
}

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

p, li {
font-family: 'Lato', sans-serif;
font-size: 22px;
Expand All @@ -52,13 +52,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;
}