problem is there's a whole LOT of absolute positioning created by vml.
--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression
| Thanks Rob. I agree that if one has to edit the code manually each time a
| page is changed, it isn't going to be very practical, but at least there
| will be a way.
|
| It looks like Mike may have found a way that will work, but I haven't
tested
| it yet. If it works out then my hope is that someone can then take it one
| step further, and come up with perhaps a small CSS code snippet that can
be
| inserted via the insert code fragment tool, that would over ride the code
| written in Publisher. This would be more practical than editing the code
| manually. As an example:
|
| <style>
| a{text-decoration:none}
| </style>
|
| This code snippet works well in Publisher. Can you come up with something
| like this that will result in the pages being centered?
|
| I just wish we could get MSFT to build this feature into Publisher. As
Mike
| points out, it is certainly possible as his code ideas come from Serif
| WebPlus which gives the user the option to center the page.
|
| BTW, congrats on your new title...
|
| DavidF
|
| | > Yep.
| > Finally got 2007 installed...pretty nice. Makes it real easy to put
| > together
| > a web.
| >
| > On the centering issue...I think it can be done but would take an
| > extraordinary amount of tweeking. I'm gonna play with it some more when
I
| > have time, but I think the solution (if there is one) will be
impractical.
| >
| > --
| > ~~~~~~~~~~~~~~~~~~
| > Rob Giordano
| > Microsoft MVP Expression
| >
| >
| >
| >
| >
| > | > |I know what you are saying, but when you do get Pub 2007 installed you
| > will
| > | probably find that the default setting is in inches. After all, it is
a
| > DTP
| > | ;-)
| > |
| > | Older versions of Publisher, such as Pub 2000 did not have the pixel
| > option.
| > |
| > | DavidF
| > |
| > message
| > | | > | > print metrics should not be used on the web.
| > | >
| > | >
| > | >
| > | > --
| > | > ~~~~~~~~~~~~~~~~~~
| > | > Rob Giordano
| > | > Microsoft MVP Expression
| > | >
| > | >
| > | >
| > | >
| > | >
| > | > | > | > | Hat Man,
| > | > |
| > | > | Thanks for the effort, but first of all, go to tools > options and
| > you
| > | > can
| > | > | change the default measurements from inches to pixels in 2003 and
| > | > | 2007...unless you prefer to work in inches. This might make it
| > easier
| > to
| > | > | determine the size of your logos and art work that you develop in
| > | > Publisher
| > | > | for your DW sites.
| > | > |
| > | > | I did look at the page you created, but like Mike's it seems that
| > your
| > | > | approach center the content on a full size browser window at ~1260
| > | > pixels
| > | > | wide, does it center the content if the browser window is smaller
| > than
| > | > that?
| > | > | It doesn't seem to. It seems that the content placement is still
| > | > "absolute",
| > | > | not "relative" to the size of the browser window. Doesn't DW have
| > the
| > | > option
| > | > | of centering your page content on any size window?
| > | > |
| > | > | The challenge seems to be is to find some way to change the
| > "absolute
| > | > | positioning" of Publisher 2003 and 2007 web pages to "relative
| > | > positioning"
| > | > | just as you can achieve in DW, and as Don can achieve with the
| > <center>
| > | > tags
| > | > | in a Pub 2000 web page, and as Mike and Rob can with the software
| > they
| > | > use.
| > | > |
| > | > | <grin>I just assume everybody knows more about coding than I do.
And
| > | > don't
| > | > | worry about causing a debate. I appreciate the opportunity to
learn
| > from
| > | > | people that use other software to build their websites. My
knowledge
| > of
| > | > | other web building software is also pretty limited. Thanks.
| > | > |
| > | > | DavidF
| > | > |
| > | > |
| > | > | "The Hat Man Ireland" <
[email protected]>
| > wrote
| > | > in
| > | > | message | > | > | > DavidF (&interested parties),
| > | > | > I love this 'us less knowledgeable folk' bit in the first
| > | > paragraph....
| > | > | > I know nothing about CODING, HTML and some of the other jargon
you
| > | > guys
| > | > | > are
| > | > | > using.
| > | > | > I still have my doubts as to what it is you want to do BUT....
| > | > | > log on to
| > | > | >
www.ahat4u.com
| > | > | > and if this is it - great, because I did it in about 10 mins.
this
| > | > morning
| > | > | > and I'll follow up with the 'HOW TO..'
| > | > | > J**S, I've caused some debating since my first enquiry.......
| > | > | > The Hat Man.
| > | > | >
| > | > | >
| > | > | >
| > | > | > "DavidF" wrote:
| > | > | >
| > | > | >> Hey Hat Man...bring it on! ;-) Publisher generates left
justified
| > | > pages,
| > | > | >> and
| > | > | >> though Mike suggests in this thread that it is easy, it hasn't
| > been
| > | > easy
| > | > | >> enough for anyone else <grin again>. You have to remember that
| > | > Publisher
| > | > | >> is
| > | > | >> used by those of us that know little too nothing about
| > | > coding...that's
| > | > | >> one
| > | > | >> of the fundamental reasons to use it. All that coding stuff
| > happens
| > | > | >> automagically when we Publish to the Web. It may be
| > embarrassingly
| > | > simple
| > | > | >> for someone that does know how to write code, but not for us
less
| > | > | >> knowledgeable folks.
| > | > | >>
| > | > | >> Seriously, part of the problem is that Publisher had no
built-in
| > | > support
| > | > | >> for
| > | > | >> centering pages. This means that the only way to change that is
| > to
| > | > | >> produce
| > | > | >> the html pages, open them in NotePad or some other editor, and
| > change
| > | > the
| > | > | >> code to achieve the centering. This also means that even if you
| > are
| > | > able
| > | > | >> to
| > | > | >> edit the code such that it does result in a centered page, you
| > will
| > | > have
| > | > | >> to
| > | > | >> redo it every time you change the Publisher page. When you want
| > to
| > | > make
| > | > | >> changes in your web pages, you don't edit the old html code,
you
| > make
| > | > | >> changes in the original Publisher file, and generate new html
| > files.
| > | > This
| > | > | >> means you will have to edit the code each time, and that it
isn't
| > | > very
| > | > | >> practical for someone using Publisher unless they rarely change
| > their
| > | > | >> site.
| > | > | >>
| > | > | >> Even so, people want to center their pages, and in Publisher
2002
| > and
| > | > | >> older,
| > | > | >> Don has found a relatively quick way to do this with
| > "ReplaceInFile"
| > | > | >> <
http://www.emurasoft.com/index.htm>
| > | > | >> You can see how he just adds a center tag and an explanation in
| > the
| > | > | >> thread:
| > | > | >> 'Centering Web Page Content in Publisher" 9/7/07. In fact he
can
| > do
| > | > | >> accomplish this without opening the html files in NotePad.
| > | > Unfortunately
| > | > | >> Pub
| > | > | >> 2003 and 2007 has different html code, and the method he uses
| > doesn't
| > | > | >> work.
| > | > | >>
| > | > | >> As Rob does understand coding, and has been lurking around and
| > | > helping
| > | > | >> out
| > | > | >> here, we have challenged him to come up with an easy way to
| > center
| > | > | >> Publisher
| > | > | >> web pages. We tried to get MSFT to build this into Publisher,
but
| > | > thus
| > | > | >> far
| > | > | >> have not been successful.
| > | > | >>
| > | > | >> The ideal would be to write a code snippet that could be
inserted
| > | > into
| > | > | >> the
| > | > | >> Publisher page with the insert html code fragment tool, so that
| > each
| > | > time
| > | > | >> that page is changed, and new html code is produced, and you
| > would
| > | > not
| > | > | >> have
| > | > | >> to edit the code directly. Less ideal, but still valuable, is
how
| > and
| > | > | >> what
| > | > | >> to edit in the Pub 2003 and 2007 code, so as to get a centered
| > page.
| > | > If
| > | > | >> you
| > | > | >> have some ideas, please do share them. Between you, Rob and
Mike,
| > and
| > | > | >> perhaps Don, maybe you can come up with a good workaround for
the
| > | > left
| > | > | >> justified pages.
| > | > | >>
| > | > | >> I am really pleased you are still lurking around. Its nice to
| > have
| > | > | >> someone
| > | > | >> with your experience with DW participating. That's why it is
also
| > | > nice
| > | > | >> have
| > | > | >> Rob and Mike who have their own expertise. We coding dummies
| > | > appreciate
| > | > | >> it
| > | > | >> ;-).
| > | > | >>
| > | > | >> DavidF
| > | > | >>
| > | > | >>
| > | > | >>
| > | > | >> "The Hat Man Ireland"
| > <
[email protected]>
| > | > wrote
| > | > | >> in
| > | > | >> message
| > | > | > | >> > Hi David,
| > | > | >> > Am I reading this right?
| > | > | >> > You want your site to appear in the centre of the browser
| > window
| > | > | >> > instead
| > | > | >> > of
| > | > | >> > at the left which is usualy the case?
| > | > | >> > I find it hard to accept that you would be unable to do this,
| > which
| > | > is
| > | > | >> > why
| > | > | >> > I
| > | > | >> > am having doubts that it is actually what you are describing.
| > | > | >> > IF IT IS the problem, I have a method which I'm too
embarressed
| > to
| > | > | >> > detail
| > | > | >> > right now because of the above mentioned doubts.
| > | > | >> > Let me know.
| > | > | >> > The Hat Man.
| > | > | >> >
| > | > | >> >
| > | > | >> >
| > | > | >> >
| > | > | >> > "DavidF" wrote:
| > | > | >> >
| > | > | >> >> Rob,
| > | > | >> >>
| > | > | >> >> Maybe we are saying the same thing, but I think that the
whole
| > | > reason
| > | > | >> >> The
| > | > | >> >> Hat Man posted was to tell me that web page preview in DW
was
| > also
| > | > a
| > | > | >> >> problem
| > | > | >> >> with IE7, and that the problem was "cured" by rolling back
to
| > IE6.
| > | > At
| > | > | >> >> the
| > | > | >> >> same time it would have been interesting to see if adding
the
| > MOTW
| > | > to
| > | > | >> >> his
| > | > | >> >> DW
| > | > | >> >> code would have fixed the problem in IE7. You are probably
| > saying
| > | > the
| > | > | >> >> same
| > | > | >> >> thing...
| > | > | >> >>
| > | > | >> >> You would be the resident hero if you could develop a code
| > snippet
| > | > | >> >> that
| > | > | >> >> could be inserted into a Publisher (2003 and 2007) web page
| > that
| > | > would
| > | > | >> >> center the page in the browser window!!! Don, the resident
| > | > "centering
| > | > | >> >> expert", would especially appreciate it. Seriously,
centering
| > the
| > | > | >> >> pages
| > | > | >> >> is
| > | > | >> >> one of the most common requests to this group, so we all
look
| > | > forward
| > | > | >> >> to
| > | > | >> >> your solution. Thanks.
| > | > | >> >>
| > | > | >> >> DavidF
| > | > | >> >>
| > | > | >> >>
| > | > | >> >>
| > | > | >> >>
| > | > | >> >> "Rob Giordano (Crash)" <
[email protected]>
wrote
| > in
| > | > | >> >> message
| > | > | >> >> | > | > | >> >> >
| > | > | >> >> >
| > | > | >> >> > --
| > | > | >> >> >
| > | > | >> >> > Rob Giordano
| > | > | >> >> > Microsoft MVP - FrontPage
| > | > | >> >> >
| > | > | >> >> >
| > | > | >> >> >
| > | > | >> >> >
| > | > | >> >> >
| > | > | >> >> > | > | > | >> >> > | Thanks Rob. A point of clarification...the site Hat Man
| > has
| > | > posted
| > | > | >> >> > was
| > | > | >> >> > built
| > | > | >> >> > | with DW, not Publisher. He was just using Publisher to
| > produce
| > | > | >> >> > some
| > | > | >> >> > of
| > | > | >> >> > the
| > | > | >> >> > | art components that he then used in his DW built site,
and
| > was
| > | > | >> >> > testing
| > | > | >> >> > how
| > | > | >> >> > | things looked by doing a web page preview from
Publisher.
| > | > | >> >> >
| > | > | >> >> > Yes I know. Earlier I was trying to make a point with him
to
| > not
| > | > try
| > | > | >> >> > to
| > | > | >> >> > preview in Publisher, rather in DW>Preview in Browser and
it
| > | > would
| > | > | >> >> > have
| > | > | >> >> > been
| > | > | >> >> > interesting to have him try that before he switched back
to
| > IE6.
| > | > | >> >> >
| > | > | >> >> >
| > | > | >> >> >
| > | > | >> >> > |
| > | > | >> >> > | Unfortunately I can't test the use of a MOTW myself as I
| > can
| > | > not
| > | > | >> >> > reproduce
| > | > | >> >> > | the problem. Nor does it seem that not being able to
| > preview
| > a
| > | > | >> >> > Publisher
| > | > | >> >> > web
| > | > | >> >> > | page in IE7 is a universal problem among all IE7 users,
| > which
| > | > | >> >> > makes
| > | > | >> >> > it
| > | > | >> >> > even
| > | > | >> >> > | more difficult to troubleshoot.
| > | > | >> >> >
| > | > | >> >> > I will try it as soon as I can figure out why Publisher
2007
| > | > won't
| > | > | >> >> > install
| > | > | >> >> > on my machine. I also wanted to mess around with an idea I
| > had
| > | > for
| > | > | >> >> > centering...got half way there..well not half way...I got
| > all
| > | > the
| > | > | >> >> > way
| > | > | >> >> > to
| > | > | >> >> > the
| > | > | >> >> > right
)))
| > | > | >> >> >
| > | > | >> >> > |
| > | > | >> >> > | I have IE7 installed on a test partition but have no
| > problem
| > | > doing
| > | > | >> >> > a
| > | > | >> >> > webpage
| > | > | >> >> > | preview. Yes, I get the information bar and the security
| > | > warnings
| > | > | >> >> > about
| > | > | >> >> > | active content, but once I click through that, the page
| > does
| > | > | >> >> > preview.
| > | > | >> >> > This
| > | > | >> >> > | is the same behavior as with IE6. I am running XP SP2.
| > | > | >> >> > |
| > | > | >> >> > | I did try inserting via the code fragment tool, the MOTW
| > code
| > | > | >> >> > snippet
| > | > | >> >> > into
| > | > | >> >> > a
| > | > | >> >> > | Pub doc and preview with IE6, and the MOTW does not
| > prevent
| > | > the
| > | > | >> >> > information
| > | > | >> >> > | bar and security warning from coming up. But then
perhaps
| > | > trying
| > | > | >> >> > to
| > | > | >> >> > prevent
| > | > | >> >> > | the security warning from popping up means nothing when
it
| > | > comes
| > | > | >> >> > to
| > | > | >> >> > actually
| > | > | >> >> > | being able to preview a Publisher web page, given that I
| > can
| > | > click
| > | > | >> >> > through
| > | > | >> >> > | that anyway.
| > | > | >> >> > |
| > | > | >> >> > | Oh well, thanks for your help anyway. I am convinced
that
| > it
| > | > is
| > | > a
| > | > | >> >> > security
| > | > | >> >> > | issue...just not sure how to work around it. The next
time
| > | > someone
| > | > | >> >> > posts,
| > | > | >> >> > I
| > | > | >> >> > | will try to remember this and ask them to test inserting
| > the
| > | > MOTW.
| > | > | >> >> > If
| > | > | >> >> > you
| > | > | >> >> > | have any other thought now or in the future, please
| > advise.
| > | > | >> >> > |
| > | > | >> >> > | DavidF
| > | > | >> >> > |
| > | > | >> >> > | "Rob Giordano (Crash)" <
[email protected]>
| > wrote
| > | > in
| > | > | >> >> > message
| > | > | >> >> > | | > | > | >> >> > | > inline..
| > | > | >> >> > | >
| > | > | >> >> > | > --
| > | > | >> >> > | >
| > | > | >> >> > | > Rob Giordano
| > | > | >> >> > | > Microsoft MVP - FrontPage
| > | > | >> >> > | >
| > | > | >> >> > | >
| > | > | >> >> > | >
| > | > | >> >> > | >
| > | > | >> >> > | >
| > | > | >> >> > | > | > | > | >> >> > | > | Rob,
| > | > | >> >> > | > |
| > | > | >> >> > | > | Thanks. I read the article, but it seems that this
is
| > | > talking
| > | > | >> >> > about
| > | > | >> >> > IE6,
| > | > | >> >> > | > not
| > | > | >> >> > | > | IE7. The Hat Man did not have problems with IE6. The
| > | > problem
| > | > | >> >> > is
| > | > | >> >> > with
| > | > | >> >> > | > | previewing a website on a local machine in both
| > Publisher
| > | > and
| > | > | >> >> > | > Dreamweaver
| > | > | >> >> > | > | with IE7.
| > | > | >> >> > | >
| > | > | >> >> > | > More so with 7 I believe.
| > | > | >> >> > | >
| > | > | >> >> > | > Actually; I downloaded thehatman's website with both
FP
| > &
| > | > | >> >> > Dreamweaver
| > | > | >> >> > and
| > | > | >> >> > | > tried Preview in Browser and got the security warning,
| > once
| > | > | >> >> > around
| > | > | >> >> > that
| > | > | >> >> > | > his
| > | > | >> >> > | > site worked fine for me locally with IE7. I don't have
6
| > | > anymore
| > | > | >> >> > but
| > | > | >> >> > | > that's
| > | > | >> >> > | > not important for this test.
| > | > | >> >> > | >
| > | > | >> >> > | >
| > | > | >> >> > | > |
| > | > | >> >> > | > | Are you saying that the problems with previewing web
| > pages
| > | > | >> >> > produced
| > | > | >> >> > by
| > | > | >> >> > | > | Publisher in IE7 would be fixed if one added a MOTW?
| > As
| > | > you
| > | > | >> >> > cannot
| > | > | >> >> > edit
| > | > | >> >> > | > the
| > | > | >> >> > | > | Publisher generated html code directly prior to
doing
| > a
| > | > web
| > | > | >> >> > page
| > | > | >> >> > | > | preview...it isn't even generated yet, are you
| > suggesting
| > | > that
| > | > | >> >> > you
| > | > | >> >> > | > should
| > | > | >> >> > | > | use the insert html code fragment tool to insert
| > something
| > | > | >> >> > like:
| > | > | >> >> > | > |
| > | > | >> >> > | > | <!-- saved from url=(0014)about:internet -->
| > | > | >> >> > | >
| > | > | >> >> > | > Yes, you should try it and see if it works.
| > | > | >> >> > | >
| > | > | >> >> > | > |
| > | > | >> >> > | > | into the Publisher page prior to trying to preview
the
| > | > page?
| > | > | >> >> > | > Yes.
| > | > | >> >> > | >
| > | > | >> >> > | > |
| > | > | >> >> > | > | While I don't doubt that this is probably the
problem,
| > I
| > | > guess
| > | > | >> >> > what
| > | > | >> >> > I
| > | > | >> >> > am
| > | > | >> >> > | > | saying is that I don't know how to use this
| > information
| > | > about
| > | > | >> >> > the
| > | > | >> >> > need
| > | > | >> >> > | > for
| > | > | >> >> > | > a
| > | > | >> >> > | > | MOTW in solving the problem people are having with
| > | > previewing
| > | > | >> >> > their
| > | > | >> >> > | > | Publisher web pages with IE7. Could you explain it
to
| > me
| > | > | >> >> > please.
| > | > | >> >> > Thanks.
| > | > | >> >> > | >
| > | > | >> >> > | > I don't either, you use Publisher for webs much more
| > than
| > I,
| > | > I
| > | > | >> >> > was
| > | > | >> >> > hoping
| > | > | >> >> > | > you could try it out. Publisher not being an html
editor
| > is
| > | > a
| > | > | >> >> > big
| > | > | >> >> > problem.
| > | > | >> >> > | >
| > | > | >> >> > | >
| > | > | >> >> > | >
| > | > | >> >> > | > |
| > | > | >> >> > | > | DavidF
| > | > | >> >> > | > |
| > | > | >> >> > | > | "Rob Giordano (Crash)"
| > <
[email protected]>
| > | > wrote
| > | > | >> >> > in
| > | > | >> >> > | > message
| > | > | >> >> > | > | | > | > | >> >> > | > | > That is only because IE7 will not allow scripts to
| > run
| > | > on
| > | > | >> >> > local
| > | > | >> >> > | > machine
| > | > | >> >> > | > | > without permission.
| > | > | >> >> > | > | >
| >
http://msdn2.microsoft.com/en-us/library/ms537628.aspx
| > | > | >> >> > | > | >
| > | > | >> >> > | > | > Had you added a MOTW to your website it should
have
| > | > viewed
| > | > | >> >> > fine
| > | > | >> >> > in
| > | > | >> >> > DW
| > | > | >> >> > | > | > Preview in Browser.
| > | > | >> >> > | > | >
| > | > | >> >> > | > | > --
| > | > | >> >> > | > | >
| > | > | >> >> > | > | > Rob Giordano
| > | > | >> >> > | > | > Microsoft MVP - FrontPage
| > | > | >> >> > | > | >
| > | > | >> >> > | > | >
| > | > | >> >> > | > | >
| > | > | >> >> > | > | >
| > | > | >> >> > | > | >
| > | > | >> >> > | > | > "The Hat Man Ireland"
| > | > | >> >> > <
[email protected]>
| > | > | >> >> > | > wrote
| > | > | >> >> > | > | > in
| > | > | >> >> > | > | > message
| > | > | >> >> > | > | > | >> >> > | > | > | Further to our recent 'communications', I have
| > just
| > | > | >> >> > discovered
| > | > | >> >> > | > | > something
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|