ive sorted the problem now dude..
Main Topics
Browse All TopicsHi 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.infinitywebdesi
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
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....
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: shiraztiPosted on 2008-02-11 at 02:27:34ID: 20865176
You should specify a doctype in your html page.
l1/DTD/xht ml1-transi tional.dtd ">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtm
This line is important, otherwise browser don't be able to detect which version of html/xhtml that you're using.
Select allOpen in new window