Problem Aligning a DIV template

I have the following template and I want to center align it on the page. I am having a lot of difficulty in trying to get it to work. Can someone show me help me with this ?
Thanks.

<HTML>
<HEAD>
 <TITLE></TITLE>
 <link href="styles3.css" type="text/css" rel="stylesheet">
</HEAD>

<BODY BGCOLOR=#FFFFFF>

<div class="float2">
  <p>

  </p>
</div>

<div class="float3">
  <p>

  </p>
</div>

<div class="float4">
  <p>

  </p>
</div>

<div class="float5">

</div>

</BODY>
</HTML>

CSS

div.float2
{
  position:absolute;
  padding: 1px;
  left: 5;
  top:5;
  width:600;
  height:60;
  border:1px solid gray;
}

div.float3
{
  position:absolute;
  padding: 1px;
  left: 5;
  top:64;
  width:400;
  height:250;
  border:1px solid gray;
}

div.float4
{
  position:absolute;
  padding: 5px;
  left: 404;
  top:64;
  width:201;
  height:321;
  border:1px solid gray;
}

div.float5
{
  position:absolute;
  padding: 5px;
  left: 5;
  top:313;
  width:400;
  height:72;
  border:1px solid gray;
}
nmretdAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Eternal_StudentCommented:
wrap everything in a container:

After <body....> add
  <div id="container">
and before </body> add
   </div>

Then:

#container {
margin:0 auto;
width:600px;
position:relative;
}
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kevp75Commented:
Eternal_Student is correct

the big thing is the margin:0 auto;

you could get away with adding it to the rest of your divs if you didn't want to go with the wrapper method
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.