How do I center an entire page for browsers for Frontpage 2003?

F

forpokerwebsites

How would I be able to center an entire page on my website with Frontpage
2003? I want to know this so no matter what screen size you have the
information will always be in the middle of the browser.
 
S

Stefan B Rusynko

If your site uses tables for the layout center the tables




| How would I be able to center an entire page on my website with Frontpage
| 2003? I want to know this so no matter what screen size you have the
| information will always be in the middle of the browser.
 
M

Murray

The most reliable way, no matter what your site uses would require you to
get into some code.

Change this -

</head>

to this -

<style type="text/css">
<!--
body { text-align:center; }
#wrapper { text-align:left; width:760px; margin:0 auto;position:relative; }
/* 760px will display on an 800px screen maximized browser window without */
/* horizontal scrollbars. */
-->
</style>
</head>

change this -

<body ...>

to this -

<body ...>
<div id="wrapper">

and this -

</body>

to this -

<!-- /wrapper -->
</div>
</body>

and see if that helps.
 
T

Toni

The best and most code-efficient way is to enclose the entire page content in <center>
tags, as in:

<body>
<center>

.... content goes here ...

</center>
</body>




...
 
M

Murray

Utter nonsense. Not only is this technique deprecated since HTML3, but also
it cannot affect the behavior of any absolutely positioned elements.
 
B

Bill O

Why not:

<style type="text/css">
body { margin-left: 10%; margin-right: 10%; }
</style>

Of course this goes between your <head> </head> tags

That's what I do, and my page is centered in the browser window.
 
M

Murray

Not if you have any absolutely positioned elements on the page. Also, not
if your page is a fixed width.
 
T

Toni

Sorry, Murray, you are the one filled with utter nonsense. "Depreciated"? Are you one of
those tech dweebs that actually believes that browsers will no longer support the
"depreciated" features? What nonsense!

Intelligent web designers will continue to use "depreciated" tags such as <center>
simply because they use the least amount of code. Look at some of the code-fat solutions
being suggested here.

Browsers will support these depreciated tags forever and ever.

So, stop spouting utter nonsense Murray. I can't stop laughing! What a silly comment!

Seriously - "depreciated"???

Toni
 
A

Andrew Murray

The word Murray used is "deprecated" not "depreciated". I Googled the word
and results page 1 came up with these top entries (search term was
'deprecated definition').

Wikipedia:
"In computer software standards and documentation, the term deprecation is
applied to software features that are superseded and should be avoided."

(Source: http://en.wikipedia.org/wiki/Deprecated)

Google: "Strongly disapproved of; Belittled; insulted; Obsolescent; said of
a construct in a computing language considered obsolete but still available
for use, though planned to be phased out"

(Source:
http://www.google.com.au/search?hl=...precated&sa=X&oi=glossary_definition&ct=title)

Hope this resolves the argument; Murray's use of the word "deprecated" was
correct in the context of this discussion.
 
T

Toni

Blame spell-check.

Substitute "deprecated" for "depreciated" in my post.

I'll always use the most code-efficient solution. So does Google, who uses the
DEPRECATED <center> tag on their websites.

To put it another way - all my moneymaking websites have one thing in common - they load
FAST!

Toni
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top