Page looks different in IE and FireFox

D

Don Schmidt

The helpers need a bit more help from you.

What version of Publisher are you using/

What method are you using to center the webpage?
 
S

Spike

I see that you set the centering for a page that is 984 pixels wide
</head><table border=0 cellpadding=0 cellspacing=2 width=984
align=center><tr><td>
Is your page width 984 pixels?
It is NOT centered in IE 7

Spike
 
B

BABs

I couldn't see a response from Don.
The page isn't 984, it is 760, but when I had it set for 760, the location
varied greatly depending on the monitor size. 984 puts it centered on my
monitor and close on all others. I thought maybe there would be some html
code to center it automatically no matter what the monitor size.?
The thing that bothered me was the underlined title in FireFox. The text
has a hyperlink but I changed the font in Publisher not to have the
underline. It is fine in IE just not in FF.
This is my first try at webpage design and for the most part, I'm happy with
the outcome, it's just those two details that bug me.
Any suggestions are appreciated.
Thx
 
D

Don Schmidt

Your site looks ok on IE8 except it is left centered; about twice as much
white space on the right as the left.
 
G

GeoffreyChaucer

Instead of </head><table border=0 cellpadding=0 cellspacing=2 width=984
align=center><tr><td>,
try placing <center> between </head> and <body> on each page.

Firefox does all sorts of weird things: it does not control the alpha
filter, it ignores the RGB pallette, it puts lines where there are none, and
it sometimes ignores font settings. Since the vast majority of people use IE,
why worry about what Firefox does?
 
D

David Bartosik

Currently when speaking of "IE" one needs to specify which one i.e. 6, 7,
8... as each one is a different animal. The new 8 comes closest to meeting
web design standards but most professional designers would be quick to point
out that it still lags behind Firefox, Safari, and Opera. Microsoft gets away
with a lot because of IE's dominance (it is my default browser (v.8) but I
use the other 3 for testing).

The correct way for centering is

margin-left:auto;
margin-right:auto;

but only IE 8 supports the correct way. Previous versions require the
incorrect -

text-align:center;

Publisher is designed to generate html code for the IE browsers (pre v.8) so
a lot of its html can render oddly in the other browsers. Due to IE's
dominance most people assume incorrectly that IE is doing it right and
everyone else is wrong. Only IE 8 gets it right, and ironically enough IE 8
comes with a compatibilty button that allows you to view incorrect html coded
for IE 7 - properly. Proper for IE 7 - that is.

If supporting the other browsers is important to you then you want to
install all of them and test your site across all of them. To support
centering correctly typically involves adding custom code with the html
fragment option.

If you want to learn more about these things and more I recommend

http://www.netmag.co.uk/
 
D

DavidF

The centering code should work if you use the correct width of your
page...or at least it has in the past. I think the reason you are having
problems with your pages not centering correctly is because of something
else. The clue is to view your pages in IE7 and FF3 you will notice that
your pages and images are about 125% larger in FF.

Go to your control panel > Display properties (or just right click your
desktop > Properties). Go to Settings tab > Advanced. Under the general tab
probably, look for the 'DPI setting' of your Display. I am guessing your
setting is at 120 dpi. Change that to 96 dpi which will probably require
rebooting. Open your Publisher publication, re-publish your web files and
upload them using the centering code with the proper width of your pages.
Now view your pages and you should see that they will center correctly and
that perhaps your other alignment and layout issues you have been
experiencing have gone away.

This may also fix your hyperlink underline issue too, but I suspect you are
using a code fragment something like:

<style>
a{text-decoration:none;}
</style>

to remove the underline from your hyperlinks. If so then sometimes this does
not seem to work correctly in Pub 2007. Use the Hotspot method of adding the
hyperlink instead. Look to the far left side in the column of icons for text
boxes, etc and find the small green round icon with the hash mark square
around it. Click it and then draw a 'hotspot hyperlink' around the title
instead of the normal way of inserting the hyperlink. This is the way
Publisher makes your navbar 'buttons' 'hot' links without the text being
underlined.

DavidF
 
D

DavidF

Wow! Welcome back. What a nice surprise.

There has been a lot of changes since we last heard from you. Among other
things is we have worked out a coding hack to center Publisher pages. Used
with a little free utility called ReplaceinFiles at
http://www.emurasoft.com/replall/index.htm after you have it set up it
requires only two clicks to rewrite the code in the .htm files such that
they will center in all browsers. No it certainly isn't 'proper' coding and
we have had many a spirited debate about how appropriate it is to use it. In
fact your name has been brought into that discussion as the original
centering code for Pub 2000 was supplied by you and is still available in
your archived materials.

In fact your name has been invoked many a time in the last few months. Have
your ears been burning? If you still have my email address, contact me out
of the group...

DavidF
 
D

DavidF

While it may still be true that more people use IE than other browsers, I
don't think you can say that the 'vast majority' do. And regardless of how
the % breaks out, to ignore those people who use FF and other browsers is to
ignore a significant group of people. In general we have found that if you
tweak the layout and design of Publisher webs such that they work in both IE
and FF, then they will also render correctly in the other major browsers, so
with a little work there is no reason to ignore people who choose to not use
IE.

Here are some stats that indicate that IE may have as little as 42% of the
market to 66%.

http://www.w3schools.com/browsers/browsers_stats.asp
http://en.wikipedia.org/wiki/Usage_share_of_web_browsers

DavidF
 
R

Rob Giordano [MS MVP]

Its not true...FF usage is twice what IE is...see your w3c link.


--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression
 
D

DavidF

Look again more closely. According to the w3c link, as I read it, the number
of IE6, IE7 plus IE8 users totals 42.1% and FF equals 47.1% in April 2009.
Am I reading this wrong? Perhaps you were looking at just one version of IE?

DavidF
 
G

GeoffreyChaucer

I suppose usage of Firefox varies from country to country, and you are right
David. One shouldn't ignore other browsers. I was just being sarcastic.

Nevertheless, I have undeniable evidence that placing the <center> tag
between </head> and <body> works with IE6, IE7, IE8, and Firefox.
 
R

Rob Giordano [MS MVP]

ur right, I was just looking at the IE7...highest of the IEs

doesn't matter though at 47%...FF should NOT be ignored

--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression
 
S

Spike

undeniable evidence ?

So far I have only see that to be true using Publisher 2000 & 2002. 2003 &
2007 not so. Tell us more please.

Spike
 
G

GeoffreyChaucer

Apologies Spike, I should have specified this relates to Publisher 2000. Yep,
I'm one of a few remaining dinosaurs who still use version 2000.
 
D

DavidF

Hey, don't feel like the lone dinosaur. Don uses Pub 2000. I still use Pub
2000 primarily even though I also have the other versions. If it ain't
broke...

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