PC Review


Reply
Thread Tools Rate Thread

How do I get the website to center on the browser?

 
 
=?Utf-8?B?V2luZWtubw==?=
Guest
Posts: n/a
 
      12th Jan 2004
Hello
Am using Frontpage 2003. How do I get the web pages to center on the screen and not default to the left? I am using shared borders that has a table on default left. Then a table in the body. Each table property has Center for positioning, but there is a big gap between the shared border left and the body table. I want the whole site to just center on the screen. The code I have on the page is
<style><!-
body { text-align: center; font-family: Verdana; font-size: 10pt; color: #333333
a:link { font-family: Verdana; font-size: 10pt; color: #0000FF
a:visited { font-family: Verdana; font-size: 10pt
input { font-family: Helvetica; font-size: 10pt
button { font-family: Arial; font-size: 10pt
--></style><meta name="Microsoft Border" content="tlb, default"></head>
 
Reply With Quote
 
 
 
 
Thomas A. Rowe
Guest
Posts: n/a
 
      12th Jan 2004
As long as you are using shared borders, you can not center the web page,
use tables and the FP Include Page component or the new Dynamic Web Template
instead.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Winekno" <(E-Mail Removed)> wrote in message
news:01F79ED5-DC57-4047-AD19-(E-Mail Removed)...
> Hello:
> Am using Frontpage 2003. How do I get the web pages to center on the

screen and not default to the left? I am using shared borders that has a
table on default left. Then a table in the body. Each table property has
Center for positioning, but there is a big gap between the shared border
left and the body table. I want the whole site to just center on the
screen. The code I have on the page is:
> <style><!--
> body { text-align: center; font-family: Verdana; font-size: 10pt;

color: #333333 }
> a:link { font-family: Verdana; font-size: 10pt; color: #0000FF }
> a:visited { font-family: Verdana; font-size: 10pt }
> input { font-family: Helvetica; font-size: 10pt }
> button { font-family: Arial; font-size: 10pt }
> --></style><meta name="Microsoft Border" content="tlb, default"></head>



 
Reply With Quote
 
Jim Buyens
Guest
Posts: n/a
 
      12th Jan 2004
>-----Original Message-----
>Hello:


Howdy:


>Am using Frontpage 2003. How do I get the web pages to
>center on the screen and not default to the left? I am
>using shared borders that has a table on default left.
> Then a table in the body. Each table property has
>Center for positioning, but there is a big gap between
>the shared border left and the body table. I want the
>whole site to just center on the screen. The code I have
>on the page is:
><style><!--
>body { text-align: center; font-family: Verdana;

font-size: 10pt; color: #333333 }
>a:link { font-family: Verdana; font-size: 10pt;

color: #0000FF }
>a:visited { font-family: Verdana; font-size: 10pt }
>input { font-family: Helvetica; font-size: 10pt }
>button { font-family: Arial; font-size: 10pt }
>--></style><meta name="Microsoft Border" content="tlb,

default"></head>

Arg! (slaps palm on forehead)

This is occurring because the FrontPage always specifies
width=100% on the tables that it creates for shared
borders. So, although

body { text-align: center

does center the table, it makes no difference because the
centered table is still just as wide as the browser window.

If you just want some margins, try:

body {margin-left:100px; margin-right:100px;}
or
body {margin-left:10%; margin-right:10%;}

However, your page will still vary in width for different
sized browser windows. If you want the centered page
layout to have a fixed-width, you'll need to use HTML
tables and either Include Page components or Dynamic Web
Templates, as Tom has suggested.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------



 
Reply With Quote
 
Stefan B Rusynko
Guest
Posts: n/a
 
      13th Jan 2004
See my response in your duplicate post in the programming newsgroup

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"Winekno" <(E-Mail Removed)> wrote in message news:01F79ED5-DC57-4047-AD19-(E-Mail Removed)...
| Hello:
| Am using Frontpage 2003. How do I get the web pages to center on the screen and not default to the left? I am using shared
borders that has a table on default left. Then a table in the body. Each table property has Center for positioning, but there is a
big gap between the shared border left and the body table. I want the whole site to just center on the screen. The code I have on
the page is:
| <style><!--
| body { text-align: center; font-family: Verdana; font-size: 10pt; color: #333333 }
| a:link { font-family: Verdana; font-size: 10pt; color: #0000FF }
| a:visited { font-family: Verdana; font-size: 10pt }
| input { font-family: Helvetica; font-size: 10pt }
| button { font-family: Arial; font-size: 10pt }
| --></style><meta name="Microsoft Border" content="tlb, default"></head>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Align entire website to center, not left Hepp-Kondas Microsoft Frontpage 8 10th Apr 2012 05:43 AM
Center webpage in browser Bill Microsoft Frontpage 3 22nd Jan 2009 01:53 AM
how do i center web page on screen after I have built my website =?Utf-8?B?cnVzc2VsbGh5?= Microsoft Frontpage 3 22nd Aug 2006 09:50 AM
How to center existing website? =?Utf-8?B?V2luZDU0U3VyZmVy?= Microsoft Frontpage 3 23rd Jan 2006 01:18 PM
Website looks off center Tracy Microsoft Frontpage 2 22nd Jul 2004 06:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:52 PM.