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.htmI 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....