Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Site Appears Incorrect with PHP Code (Simple problem)

    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 Code:
                        <?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?

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,493
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    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

  • #3
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    Last edited by fireshroom; 12-25-2006 at 10:28 PM.

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,493
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    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?


    .
    Last edited by mlseim; 12-25-2006 at 10:43 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •