6 replies [Last post]
greenstork
Offline
Regular
Last seen: 16 years 14 weeks ago
Joined: 2003-07-16
Posts: 16
Points: 0

Rather than list all of the code from my sylesheet, here is the link:

http://www.esw.org/test/esw_main.css

My eyes are going a little bleary eyed from trying to sift through the code to figure out why this little bug is happeneing.

The font is large on this page:

http://www.esw.org/test/index.php

And small on this page:

http://www.esw.org/test/about/index.html

Can someone please confirm this bug. I have deisgned the whole site on a mac and I am now debugging for Windows. This bug ONLY shows up on IE6 (Win98) for me. However, and this ia a big if, I am not sure if it is only because I am running Virtual PC that this issue is present given that the font is the same size on 5 different Mac browsers.

Any help is appreciated, thanks in advance.

-Dave

dJomp
dJomp's picture
Offline
Enthusiast
Last seen: 3 years 37 weeks ago
Joined: 2003-03-23
Posts: 422
Points: 0

Font is larger on Homepage - IE6 only

Yep, I can see that. I think it's to do with:
<?xml version="1.0" encoding="iso-8859-1"?>
at the top of the page with larger font sizes. I presume this means that IE6 won't pick up the DOCTYPE declaration, and therefore will use it's own box model, which happens to include slightly larger font sizes.

You know you're a geek when you try to shoo a fly away from the monitor with your cursor.

paCkeTroUTer
paCkeTroUTer's picture
Offline
Enthusiast
Melbourne, Australia
Last seen: 6 years 23 weeks ago
Melbourne, Australia
Timezone: GMT+10
Joined: 2003-06-27
Posts: 241
Points: 2

Font is larger on Homepage - IE6 only

So much has been said about that xml prologue, now I get scared seeing that :roll:

http//melbourne.ug.php.net

greenstork
Offline
Regular
Last seen: 16 years 14 weeks ago
Joined: 2003-07-16
Posts: 16
Points: 0

How do I call up PHP then

Forgive me, I'm a novice, but that XML declaration is in there because it is my understanding that I need that declaration to make the page PHP. The news room box in the middle of the page is a server-side include with PHP.

I could probably use a different method to include this information but I would really like to be able to use PHP on the site.

Is there any way around this?

paCkeTroUTer
paCkeTroUTer's picture
Offline
Enthusiast
Melbourne, Australia
Last seen: 6 years 23 weeks ago
Melbourne, Australia
Timezone: GMT+10
Joined: 2003-06-27
Posts: 241
Points: 2

Font is larger on Homepage - IE6 only

No you got it wrong there. That declaration is not required to run php pages. In a normal HTML page the prologue would look like this:

<?xml version="1.0" encoding="iso-8859-1"?>

but on a php page you have to put it this way:
<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?>

This is because when its a php page the php processor will tend to process that line as it starts with a <? which is php syntax. So therefore it is best to echo it out on a php page.

But you can certainly exclude that from both pages and it won't do "much" harm.

I am not very confident in explaining on why and when that prologue is required, so I will leave that to the experts around here.

http//melbourne.ug.php.net

greenstork
Offline
Regular
Last seen: 16 years 14 weeks ago
Joined: 2003-07-16
Posts: 16
Points: 0

Font is larger on Homepage - IE6 only

Just to confirm, the second PHP echo IS what's included on my page. What shows up in the source code from the browser is only the XML part.

Also, to confirm, you can exclude that PHP echo statement from this page and it will be OK? What are the side effects of excluding this statement. What could possibly go wrong. I need to know since it is a work related site and not a personal webpage. It will be my arse on the line if people can't view the site.

edit: the side effects are that the SSI does not work therefore the news box is now empty. Check that, it works on IE6 now but does not work on any of my mac browsers. Is there a way to declare the page PHP without using that XML declaration?

Anonymous
Anonymous's picture
Guru

Font is larger on Homepage - IE6 only

For whatever reason, it all appears to work now on IE6 and the Macs. Thanks for the help Laughing out loud