Centering a DIV exactly

Hi there,

I have been wrestling with this problem for a while now... had a look around on the web and on here but I can't find a solution which works for me. I am trying to get my web page to appear in the middle of the screen on all browsers but am having problems with centering my DIVS to the middle of the screen both horizontally and vertically,

here is an example of what i am trying to achieve:

http://www.infinitywebdesign.com/research/cssverticalcentereddiv.htm

I can't seem to get it to work with my divs though... here is my html and css code:

===================================================================
EXAMPLE HTML CODE (index.html)
===================================================================
<html>
<head>
<title>Homepage</title>
<link href="css.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="outer">

<div class="menu">
   <span class="menufont">
    <img src="images/logo.jpg" alt="Logo" /><br />
    HOME<br />
    COLLECTION<br />
    CLASSIC<br />
    NEW COLLECTION<br />
    SILVER COLLECTION<br />
    GOLD COLLECTION<br />
    DIAMOND COLLECTION
    <br />
    RELATIVE LINKS<br />
    CONTACT US<br />
    HISTORY<br />
    SITE MAP<br />

 </span></div>

<div class="content">

<h1>Personalised Gobblegook<br /><br />
ense, gobbledygook is a hurdle of communication at best, a means of imposing power at worst.
The term was coined on March 30, 1944 by Maury Maverick, chairman of the Unit<br/>
<br/>
<img src="images/introimage.jpg" alt="alt text" width="247" height="178" hspace="10" vspace="5" align="right" /><br />
obbledygook or gobbledegook (sometimes shortened to gobbledegoo) is an English term used to describe nonsensical language,
sound that resembles language but has no meaning, or unintelligible encrypted text. It is also used to refer to official, professional
or pretentious language. In this sense, gobbledygook is a hurdle of communication at best, a means of imposing power at worst.
The term was coined on March 30, 1944 by Maury Maverick, chairman of the United States Smaller War Plants Corporation.
In a memo banning "gobbledygook language", he wrote "anyone using the words activation or implementation will be shot".
[1] Maverick"<br/>


</h1>



</div>

</div>
<div class="footer">terms you are here</div>

</body>
</html>

========================================================
EXAMPLE CSS CODE
========================================================
/* CSS */

body {
      background:#CCCCCC;
      }

.outer {
      width: 750px;
      text-decoration: none;
      margin: 0 auto;
      height: 550px;
      background-color:#FFFFFF;
      }

.footer {
      width: 750px;
      text-decoration: none;
      margin: 0 auto;
      background-color:#969696;
      }

.menu {
      width: 190px;
      text-decoration: none;
      margin: 0;
      padding: 0;
      text-align: center;
      border:0;
      height: 450px;
      float:left;
      }
      
.menufont {
font-size:10.5px;
font: Arial, Helvetica, sans-serif;
line-height:35px;

      }
      
.header {
      width: 550px;
      text-decoration: none;
      height: 110px;
      background-color:#FFFFFF;
      text-align:center;
      float: right;
      }

.content {
      width: 550px;
      text-decoration: none;
      height: 300px;
      float:right;
      background-color:#FFFFFF;
      }

h1 {
      font-family:Arial, Helvetica, sans-serif;
      text-decoration:none;
      font-size: 11px;
      color: #333333;
      margin: 10px;
      text-align:center;
      }
      
h2 {

      font-family:Tahoma;
      text-decoration:none;
      font-size: 11px;
      color: #657272;
      margin: 10px;
}
.tabletext1 {
      font-family:Tahoma;
      text-decoration:none;
      font-size: 11px;
      color: #B09850;
      text-align: center;
}
.dropdowntext {

      font-family:Tahoma;
      text-decoration:none;
      font-size: 11px;
      color: #657272;
      text-align: center;
}

a:link, a:visited, a:active{
      font-family: Arial, Helvetica, sans-serif;
      text-decoration: none;
      color:#95ACA6;
}


a:hover {
      font-family: Arial, Helvetica, sans-serif;
      color:#333366;
      text-decoration: none;
}

=======================================================

Thanks for any help in advance....
brookbaAsked:
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.

shiraztiCommented:
You should specify a doctype in your html page.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

This line is important, otherwise browser don't be able to detect which version of html/xhtml that you're using.
<!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 href="css.css" rel="stylesheet" type="text/css" />
<title>Home Page</title>
</head>

Open in new window

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
brookbaAuthor Commented:
ive sorted the problem now dude..
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.