...

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



fireshroom
12-25-2006, 02: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

www.yourdefeat.com
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

<?php
$id = $_GET['id'];
switch($id) {
default:
include('home.php');
break; case "about":
include('about.php');
break; case "forum":
include('forum.php');
break; case "story":
include('story.php');
break; case "pictures":
include('pictures.php');
break; case "cliffmo":
include('cliffmo.php');
break; case "store":
include('store.php');
}?>

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?

mlseim
12-25-2006, 08: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

fireshroom
12-25-2006, 10: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
http://img391.imageshack.us/img391/958/operalh8.gif

This is how my main page appears when i use IE - which is incorrect
http://img391.imageshack.us/img391/6113/ieef4.gif

mlseim
12-25-2006, 10: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">
<head>
<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?


.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum