Forum Moderators: open
I have created a Header.inc file and a Footer.inc file
The Header.inc contains the logo of the site and the navigation menu on the left. I want the content of my page to be INSIDE the Header, so when I write <p> Hello World </p> it will show below my header and on the right of navigation menu (common sense!) In my case, the Hello World is all showing at the top of everything of my page...how can I put in inside the Header or at the place I want it to be?
Here's my code below: What I'm a missing?
<html>
<head>
<title>SPD Website</title>
<link rel="STYLESHEET" type="text/css" href="includes/main.css">
</head>
<body>
<!--#include virtual="Spdsite/Header.inc"-->
<!-- CONTENT BEGIN HERE -->
<p>Hello World</p>
<!-- CONTENT END HERE -->
<!--#include virtual="Spdsite/Footer-en.inc"-->
</body>
</html>
Thanks
Sylvie
For example, a very simple example:
HEADER:
<table>
<tr>
<td>
FOOTER:
</td>
</tr>
</table>
That way the "Hello World" will show.
I personally don't like that way of doing includes, I like to have one block of code for the header, one for the content and one for the footer.
For example:
HEADER:
<table>
<tr>
<td>
Header content
</td>
</tr>
</table>
CONTENT:
<table>
<tr>
<td>
Page content
</td>
</tr>
</table>
FOOTER:
<table>
<tr>
<td>
Footer content
</td>
</tr>
</table>
I was able to fix my problem, in fact, my header had a lot of tables and I had to go thrue each of them to make sure there where closed properly, it was a real mess! Now that I have clean it up, it's all working fine and my includes are connecting properly!
Thanks :-)