cancel
Showing results for 
Search instead for 
Did you mean: 

Auto centered web pages

zebo-the-fat
Grafter
Posts: 53
Registered: ‎30-07-2007

Auto centered web pages

How do I make my web pages appear centered on any screen?
I view it on 1280 x 1024 ant evrything looks fine,  but on 1920 x 1080 it displays to the left with lots of white space on the right.
(I am using Net Objects Fusion 9.0)
any (simple) ideas?Huh
4 REPLIES 4
Midnight_Caller
Rising Star
Posts: 4,154
Thanks: 9
Fixes: 1
Registered: ‎15-04-2007

Re: Auto centered web pages

Are you puting the text in to:

<center> Text go's here </center> 

So you get:
Text go's here

zubel
Community Veteran
Posts: 3,789
Thanks: 1
Registered: ‎08-06-2007

Re: Auto centered web pages

Wrap your entire site in a div, with the following css properties:

width: 900px;  // your site width
left: auto;
right: auto;
height: auto;
margin: 0px auto;
margin-left: auto;
margin-right: auto;
seanbranagh
Community Veteran
Posts: 1,236
Registered: ‎02-08-2007

Re: Auto centered web pages

I use similar to above, build the entire site inside a centered table. I also build 900 wide (for 1024x768)
If you are using layers, centering is much more complicated, infact I don't think it is possible but don't quote me as I don't use layers.
Peter_Vaughan
Community Veteran
Posts: 14,469
Registered: ‎30-07-2007

Re: Auto centered web pages

Just be wary of how you center things as different browsers can interpret it in different ways - especially between IE and Firefox. Always try as many browsers as you can to ensure the layouts are as you expect. Browser compatibility issues are a real pain to resolve sometimes.