View Full Version : PHP acting weird in Firefox
cmart
August 1st, 2005, 02:15 AM
Hi all,
I'm starting to switch over a couple sites I've designed to get ready for some server-side dynamic content, and I've noticed a weird behavior in Firefox.
Here's what the site is supposed to look like:
Here's the .php version.
Not only does it not seem to center the .swf in the middle of the browser window like I would like, but it's also screwing up the style sheet. Any thoughts on why this could be happening?
It's also happening on my personal site as well:
I'm pretty new to .php so this has me baffled.
Thanks....
b.rich
August 1st, 2005, 02:23 AM
check the path of your style sheet?
cmart
August 1st, 2005, 02:23 AM
I should probably mention that it looks just fine in IE and Safari, but is also giving this same outcome in Netscape.
cmart
August 1st, 2005, 02:26 AM
Even when I add this "<body bgcolor="1b1b1b">" still not giving me background color. confused a bit...
cmart
August 1st, 2005, 02:29 AM
check the path of your style sheet?yeah...it's cool. I took off the background style just to try manually overriding it as you can see in the above post...still giving me weird effect. I'll try again.
cmart
August 1st, 2005, 02:35 AM
ok...so i fixed the background color issue, but the positioning is still a problem.
Sniper Jo
August 1st, 2005, 08:32 AM
php is only on the server it never gets viewed by the client, it gets outputed as html So there must be somthing diffrent in your code.
hl
August 1st, 2005, 09:05 AM
<?xml version="1.0" encoding="iso-8859-1"?>
why the hell is that at the top :P take it off ;) it should work fine after that...
cmart
August 1st, 2005, 11:22 AM
<?xml version="1.0" encoding="iso-8859-1"?>
why the hell is that at the top :P take it off ;) it should work fine after that...hi...it's still acting funny.
I haven't even really "used" .php yet, just getting ready to (I want to pass variables into the .swf's eventually). So the code has not really changed from the .html page.
cmart
August 1st, 2005, 01:09 PM
ok, well it must be the table tag in firefox with a .php page that's making things act like this. I tired cutting and pasting the exact code from the old page into the page and still got the same non-vertically centered outcome. Or maybe the XHTML? The only differences are the fact that it's a .php page and XHTML transitional. The only .php I have in the page at this point is a blank echo.
only in firefox. arggg,.
G
August 1st, 2005, 02:17 PM
the fact that its .php extension has no bearing at all it will lie in your css or html php is not to blame the server is only returning results as html so you need to check any php code to see if your fundtions etc are returning code which is browser friendly.
cmart
August 1st, 2005, 07:09 PM
the fact that its .php extension has no bearing at all it will lie in your css or html php is not to blame the server is only returning results as html so you need to check any php code to see if your fundtions etc are returning code which is browser friendly.hi thanks for the reply...
yes I'm aware of this...my last post was almost sarcastic in saying "it must be the .php", because I didnt even use any .php. Could Firefox be having trouble with the XHTML??
Jeff Wheeler
August 1st, 2005, 07:19 PM
The PHP version has a doctype, which can cause browsers to go into a different mode. Try setting the doctype to be strict, or removing it, and it should work.
cmart
August 1st, 2005, 07:21 PM
ok so I figured out what was happening...In dreamweaver, I was leaving the checkbox checked for "make XHTML compliant". For some reason, this was throwing firefox for a loop, as I just recoded it by hand and it works just fine now.
cmart
August 1st, 2005, 07:21 PM
The PHP version has a doctype, which can cause browsers to go into a different mode. Try setting the doctype to be strict, or removing it, and it should work.thanks, I did just that and now works fine.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.