How to make my site pages appear in centered in browser

G

Guest

How do I make my FrontPage html pages (designed 740 px wide) appear centered
in user's browser window? I tried defining body in my cascading style sheet
as align:"center" but that doesn't seem to work. Is there another way I can
define this universally for my site or do I need to go into every page and
set align="center" after body tag?
 
M

Murray

Are you using 'layers' on the page?

If not, then you could use CSS to add text-align:center to a body style
rule, and that could do it for you.

As you can see, alot depends on the markup on your page. Why not post a
link so you can get better answers?
 
G

Guest

Tried putting text-align:"center" in body style of my css again, and
recalculated hyperlinks, but it didn't work.
Not sure what you mean by "layers". I've stacked a few tables, and I am
using Shared Borders. Below is my site address. Note that I have a StoreFront
shopping cart on my site, which consists of ASP.NET dynamic pages. Those
pages are centered ok, it's the html pages I'm trying to get centered.

Sharon
http://greenbrierherbalist.com
 
G

Guest

ok, where would define this table, since I'm using Shared Borders? Inside the
body tags?
sharon
 
R

Ronx

Left and Right Shared borders will always occupy the entire space from left
to right of the browser window.
Top and Bottom borders will also spread to cover the entire width of the
browser.

The workaround is to place the content of the borders in tables fixed to the
desired width, and use the align="left/right/center" attribute in the table
tag.

<table align="center" width="740">
<tr><td>Top or Bottom Border content here</td></tr>
</table>

<table width="150" align="right">
<tr><td>Left border content</td></tr>
</table>

<table width="150" align="left">
<tr><td>Right border content</td></tr>
</table>

Also set the page content in a fixed width table - if using left/right
borders make the width
740-(width of left border)-25 if only left border is used.
740-(width of right border)-25 if only right border is used
740-(width of left border)-(width of right border)-50 if both left and
right borders are used.

An even better way is to dispense with shared borders and use include files
or DWT (FP2003) instead, which gives much better control over the page
layout.
 

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