-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
|
||
<title>My Favorite Pizza</title> | ||
|
||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css" /> | ||
|
||
<link href="style.css" rel="stylesheet" type="text/css" /> | ||
|
||
</head> | ||
|
||
<body> | ||
|
||
<!-- WEB PAGE CONTENT HERE --> | ||
|
||
<div class="pageContainer"> | ||
<div class="imageContainer"> | ||
<img src="images/pizza.jpg" alt="Pizza with pepperoni and cheese." /> | ||
</div> | ||
<div class="textContainer"> | ||
<h1>Pizza!</h1> | ||
<p>My Favorite Toppings: </p> | ||
<ul> | ||
<li>Pepperoni</li> | ||
<li>Mozzarella Cheese</li> | ||
<li>Mushrooms</li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
</body> | ||
</html> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
|
||
/* | ||
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: #5f5345; | ||
} | ||
|
||
.pageContainer { | ||
width: 940px; | ||
margin: 20px auto 0 auto; | ||
padding: 20px; | ||
background-color: #fff; | ||
} | ||
|
||
.imageContainer { | ||
float: left; | ||
width: 620px; | ||
} | ||
|
||
.textContainer { | ||
float: left; | ||
width: 300px; | ||
margin-left: 20px; | ||
margin-top: 20px; | ||
} | ||
|
||
img { | ||
width: 100%; | ||
} | ||
|
||
h1 { | ||
font-family: 'Fredericka the Great', cursive; | ||
font-size: 64px; | ||
color: #8b1b00; | ||
} | ||
|
||
p, li { | ||
font-family: 'Lato', sans-serif; | ||
font-size: 22px; | ||
color: #51473b; | ||
} | ||
|
||
|
||
|
||
|
||
/* ---- Advanced ---- */ | ||
/* 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 { | ||
content: " "; | ||
display: table; | ||
clear: both; | ||
} | ||
|