View Single Post
Old 11-06-2012, 02:03 AM   PM User | #1
Bri
New to the CF scene

 
Join Date: Nov 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Bri is an unknown quantity at this point
Super newb question: body color not working in external style sheet

I am so annoyed and confused right now. I've looked for why this isn't working but can't figure out a reason from searching the web/these foruns.

I'm taking an intro to html/css class and doing an assignment for it (I am looking into getting into the web design field after college, this isn't just homework help ;D)

I can not get the body colors to apply or the footer colors to apply. I don't know why. Please look at my code and let me know why it's not working. I'm sure I did something stupid. Also, if you see any other potential problems with my code let me know, looking for tips and tricks with anything!

I did run it through the WC3 validator and it says no errors

This is the CSS code.
"pacific.css"
Code:
<style>
body { background-color: #111111;
		color: #666666; }
h1 { background-color: #000033;
		color: #FFFFFF;}
h2 { color: #3399CC;}
#nav { background-color: #90C7E3; }
#footer { color: #666666; }
.companyname { color: #000033;}
</style>
This is the html web page code it applying to
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css"
     href="pacific.css" title="Default Styles" media="screen">

<title>Pacific Trails Resort</title>
</head>

<body>
	<div>
	<h1>Pacific Trails Resort</h1>
	</div>
	<div id="nav"; >
	<strong>
	<a href="index.html">Home</a>
	<a href="yurts.html">&nbsp;Yurts</a>
	<a href="activites.html">&nbsp;Activites</a>
	<a href="reservations.html">&nbsp;Reservations</a>
	</strong>
	</div>
	<br>
	<h2>Enjoy Nature and Luxury</h2>
	<p>Pacific Trails Resort offers a special lodging experience on the California North Coast. Relax in serenity with panoramic views of the Pacific Ocean.
	<ul>
		<li>Private yurts with decks overlooking the ocean</li>
		<li>Activities lodge with fireplace and gift shop</li>
		<li>Nightly fine dining in the Overlook Cafe</li>
		<li>Heated outdoor pool and whirlpool</li>
		<li>Guided hiking tours of the redwoods</li>
	</ul>
<div>
<br>
	Pacific Trails Resort<br>
	12010 Pacific Trails Resort<br>
	Zephyr, CA 95555<br>
	888-555-5555<br>
</div>
<div id=footer"; align="center";>
<br>
<p><small><i>
Copyright &copy; 2012 Pacific Trails Resort. All Rights Reserved.<br>
<a href="mailto:AbriannaPeto@AbriannaPeto.com">AbriannaPeto@AbriannaPeto.com</a>
</small></p></i>
</div>
	
</div>
</body>
</html>
Bri is offline   Reply With Quote