1 reply [Last post]
enemeth
enemeth's picture
Offline
newbie
Last seen: 3 years 8 weeks ago
Timezone: GMT-6
Joined: 2014-09-26
Posts: 1
Points: 2

Hello all,

I have a problem, I have css in my html and it is all working great!, but I am trying to simply add my header.php to the code so it can be on the top of all the stuff that is happening below....but it will not show up. Can someone take a look and tell me why?

the following code is what I got

<style type="text/css">
/* <![CDATA[ */
 
  /* GENERIC STYLES */
  body {
    margin:0; padding:0;
    font:.75em/1.5 sans-serif;
    }
 
  h4  {
    font-size: 1em;
    }
 
  .column-in {
    margin:0; padding:10px;
    }
 
  .cleaner {
    clear:both;
    height:1px;
    font-size:1px;
    border:none;
    margin:0; padding:0;
    background:transparent;
    display:none;
    }
 
  /* THE DIV TO TABLE TECHNIQUE */
 
  #container {
    width: 80%;
    padding:0;
    display: table;
    border: 1px solid black;
    }
 
  #row  {
    display: table-row;
    }
 
  #left {
    width:150px;
    padding:0;
    background: #ffffff;
    display: table-cell;
    background:top left repeat-y;
    }
 
  #right {
    width:150px;
    background:#FEE;
    display: table-cell;
    background:top right repeat-y;
    }
 
  #middle {
    padding: 10px;
    background:white;
    display: table-cell;
    }
 
    /* IE ONLY */
  * html #container {
    background:url left repeat-y;
    }
  * html #row {
    background:url top right repeat-y;
    }
  * html #left {
    float:left;
    }
  * html #right {
    float:right;
    }
  * html #middle {
    float: left;
    width: expression((document.body.clientWidth * 0.8 - 322) + "px");
    }
  * html .cleaner {
    display:block;
    }
 
/* ]]> */
</style>
 
</head>
 
<body>
 
<div id="header"><div class="column-in">
<?php include'header.php' ?>
</div></div>
<center>
<div id="container"><div id="row">
 
  <div id="left"><div class="column-in">
    <h4>Left Col</h4>
    <p id="lccont"><script type='text/javascript' src='menu.js'></script>
 
    </p>
  </div></div>

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 2 years 45 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

If you're going to show a

If you're going to show a code example ensure it's complete within the context you are showing it. You have what looks to be a 'page' or html document here yet as such it's not in any way a valid one with required markup present.

If your PHP include actually carries that required, missing document markup then it should be at the start of the page, instructions are processed in a top down flow; your page would need to be given a .php extension generally so the server knows to pass the file to the PHP parser for interpretation and would need to be included correctly i.e include 'header.php'; and the file located at the same level as your calling file.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me