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>
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.