Here you go.
body {
font-family: Georgia, "Times New Roman", Times, serif;
text-align: center;
position: relative;
margin: 0;
padding: 0;
}
#outer{
width: 950px;
height: 600px;
margin-top: -300px;
margin-left: -475px;
left: 50%;
top: 50%;
position: absolute;
}
/*#middle{
display: table-cell;
vertical-align: middle;
}*/
Barrett
On Dec 20, 2008, at 6:12 PM, Thijs Hakkenberg wrote:
> Dear list,
>
> I've got a site which I centered horizontally with the margin-
> left:auto;
> and margin-right: auto; declarations, but this won't work for vertical
> centering. Which hack would you reccomend?
>
> The template: http://passami-olio.nl/cms/fileadmin/template/
> template.html
>
> TIA,
>
> Thijs H
> ______________________________________________________________________
> css-discuss [[email protected]]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> List policies -- http://css-discuss.org/policies.html
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/