"Howard Martin" <css@koalanet.com.au> wrote in message
news:gru6n09cisdji8og07kd73v962lurur4e9@4ax.com...[color=blue]
> I have a page at
http://www.no1hastings.com.au/new/index.html designed
> for 800 x 600 resolution and where nearly all the elements are
> positioned using CSS. The elements are lined up to the left margin
> but the client wants the page to appear in the middle of the screen at
> higher resolutions but maintaining the fixed 800px width..
>
> I've gone through the HTML Utopia : Designing Without Tables book and
> there seems to be no clue there on how to do it. Has anybody tried to
> achieve this and succeeded?
>
> TIA.
>
> Howard
>[/color]
#container {
position:relative;
width:???px;
margin-left:auto;
margin-right:auto;
}
Then place your entire page in
<div id="container>
........
[page]
</div>
where ??? is the width of you content. Hope that helps, the auto margins
allow the div to centre the containing elements.
Faz