I have forgotten how to center a main container on a page. My main container should be around 900px wide. Within that container I want to have 6 more content containers about 440px wide so that content 1 and 2 are next to each other, content 3 and 4 are on the next line next to each other, and content 5 and 6 are on the next line and next to each other. Content 7 will be 890px all the way across like a footer. I am rusty and am trying to design a lesson plan template for teachers in my school. I want to make borders around each div so I can position them properly and then add content. Ignore my <br /> tags for now please.
I cannot have css in an external sheet, it must be internal as well. I'm sure I'm forgetting many simple rules but i promised my principal I would stay today until the template is done.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Your Name and Lesson Plans</title>
<style type="text/css">
body
{background-color:#FFFF66;}
{text-align:center;}
{margin: 0 auto;}
div#container
{width: 900px;}
{border:1px dotted black;}
div#content1
{width: 440px;}
{border:1px dotted black;}
div#content2
{width: 440px;}
{border:1px dotted black;}
div#content3
{width: 440px;}
{border:1px dotted black;}
div#content4
{width: 440px;}
{border:1px dotted black;}
div#content5
{width: 440px;}
{border:1px dotted black;}
div#content6
{width: 440px;}
{border:1px dotted black;}
div#content7
{width: 890px;}
{border:1px dotted black;}
</style>
</head>
<body>
<div id="container">
<div id="content1">
<p>
Mr. Peery<br />
Hill Freedman Middle School<br />
Lesson Plans<br />
Week of 10/30/2006<br />
</p>
<div id="content2">
<p>Blue Ribbon Logo goes here</p>
<div id="content3">
<p>Objectives go here</p>
<div id="content4">
<p>Areas of interaction go here</p>
<div id="content5">
<p>Essential Questions go here</p>
<div id="content6">
<p>Everyday Materials go here</p>
<div id="content7">
<p>Learning Activities go here</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
I cannot have css in an external sheet, it must be internal as well. I'm sure I'm forgetting many simple rules but i promised my principal I would stay today until the template is done.