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

  • Thread starter Thread starter forpokerwebsites
  • Start date Start date
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.
 
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.
 
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.
 
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>




...
 
Utter nonsense. Not only is this technique deprecated since HTML3, but also
it cannot affect the behavior of any absolutely positioned elements.
 
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.
 
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
 
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.
 
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
 
Back
Top