Editing HTML in publisher

M

Mo

How do I edit HTML in publisher. I am trying to center my website & found
the code to do this, but I'm not sure how to get at it in publisher.
 
S

Spike

You do not center web pages in publisher
After you publish your web site to your hard drive, complete one of the
following routines:

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"><try><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
 
R

Rob Giordano [MS MVP]

Publisher is not an html editor, so you can't directly, you need to do
work-arounds like Spike suggests. But, you will have to redo them every time
you make changes because Publisher will overwrite you're work-arounds.
 
D

Don Schmidt

Below, it is said will work to center a website created with Publisher 2007.

=====================================================
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

=====================================================
 
M

Mo

Thanks for all the info. I guess at this point I have to wait on the
centering issue & deal with another more important one. I finally got my
graphics to load & links to somewhat work. I still have issues on links that
I fixed & they don't seem to be coming up correctly yet. I uploaded the new
index.htm, but am confused as to the changes not being there. Everything
works fine when viewing in publisher.
 
D

DavidF

Post the URL of the page where you are having problems with the links, tell
us which links, and we might be able to help sort it out.

DavidF
 
D

DavidF

Mo,

All the links on the home page seem to be active. Which ones do not
work...please be specific and provide links to the pages where you are
having problems. Help us help you.

The main problem I saw with the home page is that you apparently are putting
your banner and other design elements on a Master Page. Don't. If you go to
View > Master Page and you have any design elements there, you need to move
them back to the main page. Unfortunately you should not use a Master Page
with Publisher webs. It works fine in a print document, but can create
problems in a web. In this case if you look at your homepage in FireFox none
of the graphics load (FF has 22% of the browser market).

A small thing...select and nudge the bar, address material, and the truck
picture down
a bit. The bar is overlapping the text above it.

Otherwise, I really like your site. Though I only looked at a few pages, I
think you have done a really good job
in the design. I like how tight it is... And yes, it will look even better
when you figure out the coding for centering it. The way you have designed
it, centering it will really work well. It is really not that hard, but that
can wait.

Move everything off the Master Page and republish that, and see how many of
your issues go away. But, once again, please post back with specifics about
what links are wrong or not working.

DavidF

(e-mail address removed)...
 
M

Mo

Additional info that might be related to the problem: when I save by
document in publisher my file system is Documents & Settings/Publisher
Files/index_files which has index_files subfolder with index.htm (updated
recently) & index.htm.pub (updated recently) & another sub folder called
index_files with a bunch of graphics in it. Is this right?
 
M

Mo

When I view master pagem there is nothing showing. All the links I updated
like Home on every page doesn't work. End dump link on main page still links
to the home page even though it is correct on my publisher document. My
contact page still has the old contacts from wizard. I have new links added
to Contact Page & Maps for "ariel view" which are not showing. About Us,
Contact Us, Side Dump & Belly Dump seem to have a double vision of "A Team
Quality Service" which are not in my original publisher file. Can't think of
anything else but everything I changed on my original upload document is not
changing upon new upload. I have tried using "Publish to Web", upload
directly from GoDaddy & tried using FileZilla but haven't been able to
connect. Like I originally stated I'm a real newbie to this so I don't know
what to do! Thanks so much for all that you guys to do help us out!
 
J

John G.

The links do not work in Firefox and as a lot of people use Firefox this
needs fixing and testing.
I cannot remeber the solution but i am sure David will provide a clue.
John G.
 
D

DavidF

Ok. It appears that the problem I had the last time I looked at your home
page in FireFox was not a Master Page issue, but an issue with you not
uploading all the files, and specifically the images, to the web
server...they actually show up today. I will address your uploading issues
in your other message today. Also, I suspect that many of the problems you
are describing with the content not being updated has to do with the same
thing, or more likely that when you view the pages in question, you are
still seeing the old page, and not the new.

So first of all what browser and which version are you using to view your
pages? In the browser go to Help and then About IE or FF or whatever the
name of the browser, to see the version.

Next, what happens when you go to a page that does not seem to have been
updated, and hold down your CTRL key and hit the F5 key? This forces your
browser to reload and refresh with the most recent version of the page. It
sounds like when you looked at your pages after making changes that your
browser just showed you the old one that is in your internet cache on your
computer.

When I look at your Contact Page & Maps I do see the "ariel view" link in
both IE and FF.
http://www.tomstruckingmn.com/index_files/Page1196.htm (by the way, this is
what I meant when I said give us specific links to the specific issues you
are talking about. It saves us the time of following your links around
trying to find the errors.) I suspect that the reason you don't see the
ariel view link is because you looked at an old version of that page. Try
the Ctrl + F5 after the page loads. Do you see the ariel view link now? In
general do you see your new updated pages?

All your links work just fine in IE7. Assuming that you are using FireFox or
some other browser than IE, the reason the links are not working is that all
the text has been converted to images, which kills the links. One way to
tell is to left click and drag across some of the text and try to select it.
You can't because it is an image. Here are a few of the images that are
created for FF:
http://www.tomstruckingmn.com/index_files/image740.gif
http://www.tomstruckingmn.com/index_files/image459.gif
I suspect the reason you are getting these images is because you have
grouped together those design elements. You seem to be using lines that you
have drawn to create your outside border and then grouped those lines with
the top banner etc. Select those lines and go to Arrange > Ungroup. Make
sure you ungroup everything on your pages except for the navbar and don't
group it with any other design element.

Try the refresh page directions I gave you, and the ungroup directions, and
post back with your results and remaining issues, along with the browser you
are using, and we will go from there. Oh, and by the way always do a Tools >
Design checker to see if that finds errors. I forget to mention this...

DavidF
 
D

DavidF

You have a Publisher file on your computer which has your website design on
it. That file has a .pub extension. That is the file you open in Publisher
and make your changes. You do not upload that file. Once you make any
changes to your Pub file and are ready to create your web files, then you go
to File > Publish to the web and direct those files to somewhere on your
computer where you can find them. By default Publisher will produce an
"index.htm" file, (your home page) and an "index_files" folder that contains
all your other pages and all your graphics. You then upload the index.htm
file and the index_files folder INTACT to your web server. When you upload
new files, they overwrite the old. Spend some time reviewing the basics of
how Publisher works:
Reference: Prepare, publish, and maintain your Publisher Web site:
http://office.microsoft.com/en-us/publisher/HA100947601033.aspx

If you can't get FileZilla to work correctly, go back and study the
directions until you figure it out. Read the Help section in FileZilla and
study the documentation:
http://filezilla.sourceforge.net/documentation/

You need to invest some time understanding the basics of how Publisher works
and how to upload your files. GoDaddy also has excellent documentation and
even specific directions for using FileZilla. This stuff can be confusing at
first, but is not that hard. Just keep at it and you'll get it and then all
this will seem much easier.

DavidF
 
R

Rob Giordano [MS MVP]

None of the links are working for me in IE7 or FF3

--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression
 
J

John G.

Confusion reigns!!
For me the links work in IE6 but do NOT work in IE7 or FF3.

John G.
 
M

Mo

Even though the website is very rough yet at this stage, it is updating okay
& I will get back to some of the other things as soon as I can. Thanks for
your help so far! It has been really helpful.
 

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