O'Reilly Forums: Chapters 11 & 12 Mass Confusion - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Chapters 11 & 12 Mass Confusion

#1 User is offline   Debbie81249 

  • Active Member
  • PipPip
  • Group: Members
  • Posts: 43
  • Joined: 29-June 12

Posted 17 October 2012 - 10:54 AM

Beth....

I'm still having trouble finding "my place" to make Starbuzz work at the end of Chapter 11 and in Chapter 12. I thought it would work from picking up the previous chapter's "complete", but it didn't work for me.

At this point, I went back and re-labeled my downloaded files so that i was sure to not confuse myself about which one I was in. When I backtracked back to the start of the Sarbuzz work in Chapter 11, I edited the "beginning" downloaded htm and css files to match (I think) what is in the book on pages 484 - 486.

When I run the html, I don't get any color or paddiing/margins.

I should add that when I was doing the same steps for lounge (using the downloaded lounge files) earlier in the same chapter, all things worked as they should for me.

I'm pasting the source code I'm using and not getting color and margin stuff:

html:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Starbuzz Coffee</title>
<link rel="stylesheet" type="text/css" href="starbuzz.css">
</head>

<body>
<div id="header">
<img src="images/header.gif" alt="starbuzz Coffee header image>
</div>

<div id="main">
<h1>QUALITY COFFEE, QUALITY CAFFEINE</h1>
<p>
At Starbuzz Coffee, we are dedicated to filling all your caffeine needs through our
quality coffees and teas. Sure, we want you to have a great cup of coffee and a great
coffee experience as well, but we're the only company that actively monitors and
optimizes caffeine levels. So stop by and fill your cup, or order online with our new Bean
Machine online order form, and get that quality Starbuzz coffee that you know will meet
your caffeine standards.
</p>
<p>
And, did we mention <em>caffeine</em>? We've just started funding the guys doing all
the wonderful research at the <a href="http://buzz.wickedlysmart.com"
title="Read all about caffeine on the Buzz">Caffeine Buzz</a>.
If you want the latest on coffee and other caffeine products,
stop by and pay them a visit.
</p>
<h1>OUR STORY</h1>
<p>
"A man, a plan, a coffee bean". Okay, that doesn't make a palindrome, but it resulted
in a damn good cup of coffee. Starbuzz's CEO is that man, and you already know his
plan: a Starbuzz on every corner.
</p>
<p>In only a few years he's executed that plan and today
you can enjoy Starbuzz just about anywhere. And, of course, the big news this year
is that Starbuzz teamed up with Head First readers to create Starbuzz's Web presence,
which is growing rapidly and helping to meet the caffeine needs of a whole new set of
customers.
</p>
<h1>STARBUZZ COFFEE BEVERAGES</h1>
<p>
We've got a variety of caffeinated beverages to choose
from at Starbuzz, including our
<a href="beverages.html#house" title="House Blend">House Blend</a>,
<a href="beverages.html#mocha" title="Mocha Cafe Latte">Mocha Cafe Latte</a>,
<a href="beverages.html#cappuccino" title="Cappuccino">Cappuccino</a>,
and a favorite of our customers,
<a href="beverages.html#chai" title="Chai Tea">Chai Tea</a>.
</p>
<p>
We also offer a variety of coffee beans, whole or ground, for you to
take home with you. Order your coffee today using our online
<a href="form.html">Bean Machine</a>, and take
the Starbuzz Coffee experience home.
</p>
</div>
<div id="sidebar">
<p class="beanheading">
<img src="images/bag.gif" alt="Bean Machine bag">
<br>
ORDER ONLINE
with the
<a href="form.html">BEAN MACHINE</a>
<br>
<span class="slogan">
FAST <br>
FRESH <br>
TO YOUR DOOR <br>
</span>
</p>
<p>
Why wait? You can order all our fine coffees right from the Internet with our new,
automated Bean Machine. How does it work? Just click on the Bean Machine link,
enter your order, and behind the scenes, your coffee is roasted, ground
(if you want), packaged, and shipped to your door.
</p>
</div>
<div id="footer">
&copy; 2012, Starbuzz Coffee
<br>
All trademarks and registered trademarks appearing on
this site are the property of their respective owners.
</div>
</body>
</html>



css:

body {
background-color: #b5a789;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: small;
margin: 0px;
}

#header {
background-color: #675c47;
margin: 10px;
height: 108px;
}

#main {
background: #efe5d0 url(images/background.gif) top left;
font-size: 105%;
padding: 15px;
margin: 0px 10px 10px 10px;

}

#sidebar {
background: #efe5d0 url(images/background.gif) bottom right;
font-size: 105%;
padding: 15px;
margin: 0px 10px 10px 470px;
}

#footer {
background-color: #675c47;
color: #efe5d0;
text-align: center;
padding: 15px;
margin: 10px;
font-size: 90%;

}

h1 {
font-size: 120%;
color: #954b4b;
}

.slogan { color: #954b4b; }

.beanheading {
text-align: center;
line-height: 1.8em;
}

a:link {
color: #b76666;
text-decoration: none;
border-bottom: thin dotted #b76666;
}
a:visited {
color: #675c47;
text-decoration: none;
border-bottom: thin dotted #675c47;
}

This is the first time that I've had problems "find" the starting point to work from in the book....so far, my problems have been not enough attention to detail and missing a keystroke or something like that. This time, I copied.....so I'm just not sure.

Debbie
0

#2 User is offline   Beth Robson 

  • Veteran Member
  • PipPipPipPipPipPipPipPipPip
  • Group: O'Reilly Employee
  • Posts: 364
  • Joined: 17-September 08
  • Gender:Female
  • Location:Seattle, WA
  • Interests:I am interested in computer science, the Web, social media and the internet, Mac development, and adult learning.

Posted 17 October 2012 - 04:33 PM

Looks like you're not starting from the "starbuzz-complete" files in chapter 11.
Elisabeth Robson
Co-founder, WickedlySmart.com
Author: Head First JavaScript Programming, Head First HTML5 Programming, Head First HTML and CSS, Head First Design Patterns
0

#3 User is offline   aggiekat 

  • Active Member
  • PipPip
  • Group: Members
  • Posts: 11
  • Joined: 27-January 13

Posted 27 January 2013 - 09:37 PM

View PostBeth Robson, on 17 October 2012 - 04:33 PM, said:

Looks like you're not starting from the "starbuzz-complete" files in chapter 11.


THESE FILES ARE NOT THERE. Please check my new post with details of this. Thanks.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users