problem with adding external page element

Discussion in 'HTML & Website Design' started by amxcorey, Jan 3, 2008.

  1. #1
    ok i have this problem that is a real nusence.

    Here is the templete i want to use in all html

    look here

    Now everyone knows that it is a HUGE hassle to change anything on a website if you don't do it right. i wanted to make the sidebar on that template an external file that follows the same css. so i deleted it from the template and added this code in php.

    <div id="sidebar">
    <?php include ("sidebar.html");
    ?>
    </div>
    I kept the div in order to keep it in the right place though it also works without it.

    HERE IS THE PROBLEM! after i do that little bit of code the site looks like this.........????????????????

    Look Here

    Just scroll down you will see the difference.

    Why is it doing that if i didn't change any of the css or html i simply took the sidebar out and made it an external file. now the content wrapper isn't keeping the content WRAPPED. ahh

    Please help ill post more code if you need it.

    Amxcorey
     
    amxcorey, Jan 3, 2008 IP
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Looking at the HTML for the PHP file you are getting another "<head>
    <link href="images/Envision.css" rel="stylesheet" type="text/css" />

    </head>
    <body>" in the middle of the HTML - these shouldnt be in your Include file.
     
    AstarothSolutions, Jan 4, 2008 IP
  3. amxcorey

    amxcorey Peon

    Messages:
    235
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    oh ok let me try it without them then.
     
    amxcorey, Jan 4, 2008 IP
  4. amxcorey

    amxcorey Peon

    Messages:
    235
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    AH HA i got it. thank you very much that was the problem :)
     
    amxcorey, Jan 4, 2008 IP
  5. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #5
    np :)
     
    AstarothSolutions, Jan 4, 2008 IP