Centered web page no scrolling please

R

Rory

I been struggling with being able to create a web page without having to
scroll to the left or right. I aligned it to the center and it looks great on
my laptop when I preview but when I check it on other computers you still
have to scroll. The site is www.iam720j.org I want to to appear right in the
center of the screen on whatever computer I on. Help !!!
 
S

Steve Easton

Place the page content into a table set to a fixed width of 760 pixels.
Then center the table.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
A

Ahmad Fawad Rashidi

OK, You are missing some thing. When you are visiting the site from one
computer the resolution of that computer is different from the second
computer. For example the resolution of the first computer might be 1024X768
pixles. Thus, you have to scroll either left and right or up and down.
But I visited you site and you don't have anything in the middle of you
page. It is almost empty. I recomment you to make you table shorter and so
that not only you can get red of the empty space which doesn't look too nice
but you can also make you page maybe non scrollable for the people who are
using computers with low screen resolution.
You can also do this. You can write on you page that your page is best
deplayed on 1024X768 resolutions. You can even get a javascript code from the
Internet and show automatically visitors resolutions on your page.
Good Luck, by the way you made a good web page it is very nice.
 
M

Murray

See, resolution has very little to do with it - it only determines the
maximum practical dimensions I can set for my browser viewport. However, I
can can have a 1600x1280 resolution screen with a browser that is only 730px
wide, and I'll get horizontal scrollbars on your 800px wide page.

Bottom line? Stop thinking resolution and screen size, and start thinking
viewport size. Then you'll realize that there is an infinity of variations
there, and the thing to do is to pick one and go with it.
 
K

KatWoman

very simple change this
<div align="center">
to <div align="left">

he already had everything in a table but the left margin is huge
 
M

Murray

Or this -

(that's right - nothing) Left alignment is the default so unless there is
some other overriding style cascading into that div, it will left align
automatically.
 
K

KatWoman

the div tag was making his table centered and leaving a huge blank margin on
the left (black background) changing the tag makes the left gap disappear,
so less scrolling is needed.
If he likes the black to show maybe make it part of the table by adding a
blank black column at the left side. And if he truly means he wants it
centered another blank column at the right?
 
M

Murray

As I understood, OP wanted the table left aligned. Removing the <div>
altogether would do that, no?
 
K

KatWoman

DUH! Yes I see what you mean now by nothing

Murray said:
As I understood, OP wanted the table left aligned. Removing the <div>
altogether would do that, no?
 
Top