View Full Version : Site Appears Incorrect with PHP Code (Simple problem)

12-25-2006, 03:17 PM
I have a very simple problem i am sure many of you can fix easily... however my experience with php is very limited i have been trying to get around this issue but cannot....

The problem i have is how the text appears in IE, if you go to my main page

you will strangely find that the text tilts towards the left side, and leaves a large area of unused space... at first i thought it was a fault of mine however it is not.... i have tried anything i could thing of to get the page to appear correctly but no luck.. I think it has something to do with the php I don’t know..

The code i use is this

$id = $_GET['id'];
switch($id) {
break; case "about":
break; case "forum":
break; case "story":
break; case "pictures":
break; case "cliffmo":
break; case "store":

anyway simply put when i view site with Opera site appears correctly with text places in center of page and proportionate to everything... in IE page appears tilted as if moved to the left... anyone got ideas?

12-25-2006, 09:04 PM
Do you mean the "Welcome to the Home of iD Clan. ..." part?

It is all centered text, if that's what you mean.
But you are deliberately aligning it that way ( <p align="center"> )

Other than that, I don't see what you mean by not showing up
correctly. I'm using IE6.0

12-25-2006, 11:26 PM
Well if you notice the about page and

Welcome to the Home of iD Clan. May you leave this clan more courageous, candid, and committed to your best interests..
and thats part above and so on all seems to align to the left.... so it appears incorrect.. for example here are two screenshots to show what i mean

This is how it appears in Opera - correct

This is how my main page appears when i use IE - which is incorrect

12-25-2006, 11:40 PM
This is confusing ...

You're specifying a separate style sheet file which doesn't exist ...
<link rel="stylesheet" href="style.css" type="text/css">

Then, you're defining your own style sheet section, then you're
mixing all of the <tables> and <divs> together. That is really a
hard way to layout a page. You should really not use tables, but
since you are, you'll have to fight the browser compatibity problems.
Once you fix one problem, you'll create another. Good luck.

NOTE: and this is strange ...
This appears twice in the page?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
body {
background-color: #000000;

What's that all about?