Help!

How to center the web page in the screen?

 
  

Goto page Previous  1, 2
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Web Design RSS
Next:  Upgrade to Expession Web  
Author Message
trehook
External


Since: Apr 21, 2009
Posts: 1



PostPosted: Tue Apr 21, 2009 5:53 am    Post subject: Re: How to center the web page in the screen? [Login to view extended thread Info.]
Archived from groups: microsoft>public>publisher>webdesign (more info?)

In Dreamweaver select the code view to look at your actual code.
Find your table (<table>). Inside the table tag you probably see
something like: <table align="center"> or some similarity. Next to
maybe try to add this:
<table valign="middle" align="center">. If middle doesnt work then try
center as I dont remember off hand which one it is. But "align=" is
for horrizontal alignment and "valign=" is for vertical alignment.
maybe that will work for you.
I might be wrong about the above. valign may not work in the actual
table but instead in the <td>. Sorry if I'm confusing you.
Below is a working example.

<table border="0" cellpadding="0" cellspacing="0" width="100%"
height="100%"><tr><td align="center" valign="middle">
<table border="1" width="300"><tr><td>Hey look at me! I'm in the
middle!</td></tr></table>
</td></tr></table>

for more detail go to my group..http://groups.google.com/group/trevor-
hook

On Apr 15, 6:02 am, "Don Schmidt" <Don Engin... DeleteThis @PNB.Retired_1987>
wrote:
> What version of Publisher do you use to create your website; different
> versions require different patches.
>
> --
> Don - Publisher 2000®
> Vancouver, USA
>
> "RMG" <R... DeleteThis @discussions.microsoft.com> wrote in message
>
> news:9C4448C2-F500-484E-9EC5-08EAB62C0F39@microsoft.com...
>
> > Hi!
>
> > First of all, sorry for my english, but I have a doubt using MS Publisher.
>
> > I have a simple page done in Publisher just with 4 images and 3 text
> > boxes.
>
> > My question is how can I center that web page in the screen of the people
> > that are visiting the website. ?
>
> > Thanks for your time!
>
> > --
> > MS Publisher Web Designer
Back to top
Eric James
External


Since: Apr 16, 2009
Posts: 8



PostPosted: Tue Apr 21, 2009 1:10 pm    Post subject: Re: How to center the web page in the screen? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> By the way, did you know that the beginnings of the code snippet(s) we now
> use for centering Pub web pages started with David Bartosik at least 6
> years ago? He posted the code to center Pub 2000 pages. I bet he never
> expected that he would create this kind of uproar this many years later.
>

Then why don't you look up and read what he has actually said? Or is your
problem in basic comprehension?

Try here:
http://www.textndata.com/articles/web-design/center-pages-pubsligher-2...-a-3375
...where it is explicitly stated that the <center> tag goes after the <body>
tag, and an additional </center> tag is required at the end, which is not by
any means what you have said - and also, correctly, that the <center> tag is
deprecated and may not work. That was in 2004!

Not to mention this http://www.justskins.com/forums/center-89946.html where
he explicitly says DON'T put the <center> tag outside of the <body> block.

Muppet.
(no sorry... that's insulting to muppets, which I'm sure are mostly
intelligent creatures!)
Back to top
Eric James
External


Since: Apr 16, 2009
Posts: 8



PostPosted: Tue Apr 21, 2009 1:10 pm    Post subject: Re: How to center the web page in the screen? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

And here's another one, from 2005:
http://www.textndata.com/articles/web-design/my-site-posted-now-34953/
See the third message down.

Unfortunately it seems the original page isn't around any more, but it's
hard to see how much more convincing anyone might need that it didn't
recommend David's approach.



"Eric James" <no.RemoveThis@mail.com> wrote in message
news:m1mHl.105297$AS.46945@newsfe03.ams2...
>
>> By the way, did you know that the beginnings of the code snippet(s) we
>> now
>> use for centering Pub web pages started with David Bartosik at least 6
>> years ago? He posted the code to center Pub 2000 pages. I bet he never
>> expected that he would create this kind of uproar this many years later.
>>
>
> Then why don't you look up and read what he has actually said? Or is your
> problem in basic comprehension?
>
> Try here:
> http://www.textndata.com/articles/web-design/center-pages-pubsligher-2...-a-3375
> ..where it is explicitly stated that the <center> tag goes after the
> <body> tag, and an additional </center> tag is required at the end, which
> is not by any means what you have said - and also, correctly, that the
> <center> tag is deprecated and may not work. That was in 2004!
>
> Not to mention this http://www.justskins.com/forums/center-89946.html
> where he explicitly says DON'T put the <center> tag outside of the <body>
> block.
>
> Muppet.
> (no sorry... that's insulting to muppets, which I'm sure are mostly
> intelligent creatures!)
>
>
Back to top
Amy
External


Since: Jan 11, 2005
Posts: 111



PostPosted: Wed May 27, 2009 10:21 pm    Post subject: Re: How to center the web page in the screen? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Don/Spike,

I am working with MS Publisher 2003 and I replaced </head> with
</head><table border="0" cellpadding="0" cellspacing="2"
width="760"align="center"><tr><td>
as suggested by you and Spike. But this is not replaced in the file.

I am new to this and the file type created by Publisher is:pub not html. I
am not even able to save or open it as html file. Any advice how to make
this work?

Thanks

"Spike" wrote:

> The fix to center pages using publisher 2000 and 2002
> Publish to your hard drive
> Edit the htm file(s) with notepad, wordpad or any other text editor and
> replace <head> with
>
> <head><center>
>
>
> The fix to center pages using publisher 2003 and 2007
> Publish to your hard drive
> Edit the htm file(s) and replace </head> with
>
> </head><table border="0" cellpadding="0" cellspacing="2"
> width="760"align="center"><tr><td>
>
> " All above on one line "
>
> Be sure that you edit the </head> line and NOT the <head> line
>
> If you are using a page width different than 760 pixels change that number
> in the above line
>
> If you have multiple pages you might want to look at
> http://www.emurasoft.com/replall/ a simple replace lines in multiple htm
> files
>
> Then ftp the files to your ISP
>
> Spike
>
> "RMG" <RMG RemoveThis @discussions.microsoft.com> wrote in message
> news:9C4448C2-F500-484E-9EC5-08EAB62C0F39@microsoft.com...
> > Hi!
> >
> > First of all, sorry for my english, but I have a doubt using MS Publisher.
> >
> > I have a simple page done in Publisher just with 4 images and 3 text
> > boxes.
> >
> > My question is how can I center that web page in the screen of the people
> > that are visiting the website. ?
> >
> > Thanks for your time!
> >
> >
> > --
> > MS Publisher Web Designer
>
>
Back to top
Don Schmidt
External


Since: Apr 21, 2007
Posts: 207



PostPosted: Thu May 28, 2009 4:29 am    Post subject: Re: How to center the web page in the screen? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Amy,

Publisher creates the htm files and to view them you use IE (or other
browser). Publisher will open only .pub files.

The </head> changes are done in the htm files; by opening the htm files with
Notepad but it is easier to use the ReplaceInFiles program.

Post your site address so we can take a look at what is happening.

--
Don - Vancouver, USA
"May your shadow be found in happy places." - Native North American


"Amy" <Amy RemoveThis @discussions.microsoft.com> wrote in message
news:6C0AC19C-8348-4C7F-BCE1-FD30E32BD53D@microsoft.com...
> Hi Don/Spike,
>
> I am working with MS Publisher 2003 and I replaced </head> with
> </head><table border="0" cellpadding="0" cellspacing="2"
> width="760"align="center"><tr><td>
> as suggested by you and Spike. But this is not replaced in the file.
>
> I am new to this and the file type created by Publisher is:pub not html. I
> am not even able to save or open it as html file. Any advice how to make
> this work?
>
> Thanks
>
> "Spike" wrote:
>
>> The fix to center pages using publisher 2000 and 2002
>> Publish to your hard drive
>> Edit the htm file(s) with notepad, wordpad or any other text editor and
>> replace <head> with
>>
>> <head><center>
>>
>>
>> The fix to center pages using publisher 2003 and 2007
>> Publish to your hard drive
>> Edit the htm file(s) and replace </head> with
>>
>> </head><table border="0" cellpadding="0" cellspacing="2"
>> width="760"align="center"><tr><td>
>>
>> " All above on one line "
>>
>> Be sure that you edit the </head> line and NOT the <head> line
>>
>> If you are using a page width different than 760 pixels change that
>> number
>> in the above line
>>
>> If you have multiple pages you might want to look at
>> http://www.emurasoft.com/replall/ a simple replace lines in multiple htm
>> files
>>
>> Then ftp the files to your ISP
>>
>> Spike
>>
>> "RMG" <RMG RemoveThis @discussions.microsoft.com> wrote in message
>> news:9C4448C2-F500-484E-9EC5-08EAB62C0F39@microsoft.com...
>> > Hi!
>> >
>> > First of all, sorry for my english, but I have a doubt using MS
>> > Publisher.
>> >
>> > I have a simple page done in Publisher just with 4 images and 3 text
>> > boxes.
>> >
>> > My question is how can I center that web page in the screen of the
>> > people
>> > that are visiting the website. ?
>> >
>> > Thanks for your time!
>> >
>> >
>> > --
>> > MS Publisher Web Designer
>>
>>
Back to top
LaymanTalk



Joined: Sep 10, 2009
Posts: 6



PostPosted: Fri Sep 11, 2009 12:50 am    Post subject: Re: How to center the web page in the screen? [Login to view extended thread Info.]

RMG wrote:
Hi!

First of all, sorry for my english, but I have a doubt using MS Publisher.

I have a simple page done in Publisher just with 4 images and 3 text boxes.

My question is how can I center that web page in the screen of the people
that are visiting the website. ?

Thanks for your time!



I don't know HTML; that's why I'm using Publisher 2003. So . . . here's a non-technical solution that I stumbled upon by clicking around Publisher (as a precaution, before trying this, rename your web layout file so your current version remains intact):

1- Click File, then Page Setup.

2- Under Layout, select Custom.

3- In the Width box, enter a horizontal measurement that is wider than your current setting. (This is trial and error; I changed my width from 8 inches to 10 inches.)

4- Now group the design elements in your web page and move them to the right (see next steps), so that the right edge of the layout touches the right edge of the enlarged white work area (in my case, it’s the 10-inch mark).

5- To group, hold down the Shift key, click the elements, then click Arrange, then Group. (Do just a few elements to test the centeredness in Steps 6-8, then do the rest of the layout/pages.)

6- To move a group, hover your cursor over the boundary of a group until you see the omnidirectional arrow symbol. Click and drag the group until the right boundary touches the right edge.

7- Now ungroup the elements so the layout can be seen on the web. To ungroup, click anywhere in the group, then click Arrange and select Ungroup.

8- Check the result by clicking File, then Web Page Preview. Adjust the page width if needed, move the elements again, then try viewing again.

This is kind of tedious, but it works. Here's my now-centered website: www.cumberlandumcflorence.org.

Hope this helps.
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Web Design All times are: Eastern Time (US & Canada) (change)
Goto page Previous  1, 2
Page 2 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum