How do I change the width of the web page based on screen size?

A

Amanda

How do I set the width of the web page to be variable so it will look good no
matter what size of window a user has? I'd like the word to wrap based on
the size of the window, not the width I set. Right now, I have a width set
and when I upload to the internet, there's a big gap on the right because
it's not wide enough to fill the screen. Plus, it's flushed all the way to
the left instead of centered in the window. Any help would be appreciated.



----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/com...0e390&dg=microsoft.public.publisher.webdesign
 
A

Amanda

Not with publisher? I guess I don't understand...do I need to design
everything in tables? Or just switch to a different software program to
design the webpage?
 
D

DavidF

Publisher produces fixed width, left justified pages by default. If you want
a variable width page you will have to use other software.

Understanding background padding in a Publisher web (aka white space):
http://msmvps.com/blogs/dbartosik/archive/2006/01/07/80563.aspx

The group has figured out how to center pages since that article was
written. The directions vary as per version of Publisher. Here is an example
of a Publisher web that is centered and changes based on the size of the
browser window:
http://devonviewcaravans.co.uk/

DavidF
 
A

Amanda

DavidF, Thank you for that link. I am already doing the recommended
background techniques mentioned, that has helped. Was the devonview site
written in Publisher? That's exactly what I'm looking for. Is there a place
that I can learn how to get it to 'move' when the window is resized? I have
Publisher 2007.
 
D

DavidF

Here is a copy of the last time this was posted by Don:

----------------

"That's the way Publisher creates websites; left justified.
It can be changed by altering the htm coding but it needs to be done each
time you edit and upload a replacement website.

=====================================================
A Donald Canned Response -

Thanks to "Spike" who has given us this:

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 on one 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"
---------------------

I have a long, more detailed version of these instructions if you need them.
Once you get things set up to work correctly once, then it is an easy
process to replacenfile each time you update you files.

DavidF
 
A

Amanda

Fantastic, thank you so much! I've got it working on all 23 pages now - that
was exactly what I was looking for. Well...sort of... I was hoping for
something inside of Publisher, but I will take what I can get at this point.
I will look for another software program to eventually move the design over
to, but for now, this is perfect since I need to have this up and running
tomorrow.

Any ideas if this is something that Microsoft plans to add to Publisher?

Thanks again!
 
D

DavidF

Glad it worked out for you, and thanks for posting back.

I don't know about whether it will be added in new versions of Publisher or
not, but given how it requires such a simple line of code it should not be
that hard to incorporate as an option. So, I hope so. But if you think
adding that code is too much trouble, then you are in for a real education
when you start investigating the software and the coding you would have to
learn to build a variable width site.

DavidF
 
R

Rob Giordano [MS MVP]

moving is not the same as re-sizing to fit a browser's viewport.

no you won't be able to just use another editor to change your Publisher
designed website, you will have to re-do it if you want to move on.
Publisher's code is impossible to work with in anything else.

I don't think you'll see too much happening with Publisher and webs in the
future...this IMO and not based upon any inside info.
 
M

MAURH

Hi Amanda,

The 'devonview' site that DavidF gave you the link to, is mine and I have
produced it, fairly easily and with the help of people in this newsgroup, in
Publisher 2003 for several years now. Like most people, I starting using it
because it came free with my Office programme and have always found it easy
to use. Sure it has some limitations, but it has always performed well
within those limitations. I also use 'ReplaceinFiles' to centre my pages. I
agree with everyone that it would be easier and more desirable if Microsoft
would incorporate this coding into it's programme, but until they do, this
work around is a good alternative. Once you have set it up, it's just a
couple of extra clicks and you're done.

If you're looking to change, Serif WebPlus is a good web site programme and
I understand from them that you can import your Publisher site into it, the
guy in the UK office actually did it whilst I was on the phone to him. How
well your site will then perform I can't say. Although I do have the Serif
programme, I prefer to stick with Publisher for now. I don't have the time
or the inclination at the moment to launch myself onto a new learning curve
:) So until Publisher lets me down, I work on the principle that 'if it
ain't broke, don't try mending it'.

Glad you got yours working well.

Maureen
 
R

Rob Giordano [MS MVP]

Serif actually produces cleaner code.

Yes, you can Import your website into Serif...but a lot of junk comes along
with it...still better off re-doing the site. I just imported your site and
it looked sorta ok.



--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression
 
M

MAURH

Hi Rob,

I did guess the coding would be an issue and importing the site into Serif
may not be the best option...good of you to try it though and interesting to
get the feed back...thanks.

Maureen
 
D

DavidF

Just to add a comment to this thread. WebPlus has lots of good things to say
about it and from what I know it does have the option of centering the pages
built-in. However, I don't believe that you can build variable width pages
with it. If Mike Koewler comes along, he can tell you.

DavidF
 

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