Serversides included, but not in the right place..

This is a discussion on "Serversides included, but not in the right place.." within the PHP Forum section. This forum, and the thread "Serversides included, but not in the right place.. are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 26th, 2006, 17:01
Junior Member
Join Date: Apr 2006
Age: 31
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Question Serversides included, but not in the right place..

Hi,

I am building a site for my mum and decided to use server side navigation. I have a top and left side navigation bar that I want to include in every page. Here it is http://www.pilgrimtarja.com That's not how I want it however. I want the left side nav to lie underneath the top nav and the main area next to the left nav under the top nav, preferably all of it centered in the page. I just can't do it! How can I include my navigation data in the right place??

PS: I know not how to use css for this... And I don't want users to load the navigation every time the click on a link.
Reply With Quote

  #2 (permalink)  
Old Apr 26th, 2006, 19:26
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: Serversides included, but not in the right place..

Put the navigation in a seperate file. Name is navigation.php

Then on the main index page, where you want the navigation to appear.
PHP: Select all

<?php include ("navigation.php");?>

Reply With Quote
  #3 (permalink)  
Old Apr 27th, 2006, 10:17
Junior Member
Join Date: Apr 2006
Age: 31
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Serversides included, but not in the right place..

Hiya,

Thank's for your reply! I have already tried putting the files in like this
PHP: Select all

<head><? include("nav.txt"); ?>

Because I saved the top nav as a text file to be included in every page. Though this method don't seem to work when I have both nav bars in... The left nav and the main area doesn't want to lie next to eachother.

Does it change the behaviour if I save it as a php? Do you mean that I should make both navigation bars in the same document? And put them where I want them? Will my main area load where I want it then?

Thank's again..

/Sof
Reply With Quote
  #4 (permalink)  
Old Apr 27th, 2006, 10:20
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 25
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Tim356
Re: Serversides included, but not in the right place..

Post your text file up so we can see it. But really, just create your menu as html and save it as a php file, then include the php file. Simple.
Reply With Quote
  #5 (permalink)  
Old Apr 27th, 2006, 10:47
Junior Member
Join Date: Apr 2006
Age: 31
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Serversides included, but not in the right place..

Here it goes...

Code: Select all
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script>
</head>
<body onLoad="MM_preloadImages('hem2.gif','kultur2.gif','rutten2.gif','historia2.gif','forberedelser2.gif','bokning2.gif','lankar2.gif')">
<table width="696" height="150" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#009933" id="banner">
<!--DWLayoutTable-->
<tr> 
<td width="696" height="128" align="center" valign="top"><img src="banner.jpg" width="696" height="128" border="0" usemap="#Map"></td>
</tr>
<tr> 
<td height="2"></td>
</tr>
<tr> 
<td height="20" valign="top"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#E9F1FE">
<!--DWLayoutTable-->
<tr> 
<td width="40" height="19">&nbsp;</td>
<td width="34" valign="top"><a href="index.php" target="_top" onClick="MM_nbGroup('down','group1','hem','',1)" onMouseOver="MM_nbGroup('over','hem','hem2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="hem.gif" alt="" name="hem" border="0" onload=""></a></td>
<td width="13">&nbsp;</td>
<td width="60" valign="middle"><a href="kultur.php" target="_top" onClick="MM_nbGroup('down','group1','kultur','',1)" onMouseOver="MM_nbGroup('over','kultur','kultur2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="kultur.gif" alt="" name="kultur" border="0" onload=""></a></td>
<td width="13">&nbsp;</td>
<td width="60" valign="top"><a href="rutten.php" target="_top" onClick="MM_nbGroup('down','group1','rutten','',1)" onMouseOver="MM_nbGroup('over','rutten','rutten2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="rutten.gif" alt="" name="rutten" border="0" onload=""></a></td>
<td width="16">&nbsp;</td>
<td width="60" valign="top"><a href="historia.php" target="_top" onClick="MM_nbGroup('down','group1','historia','',1)" onMouseOver="MM_nbGroup('over','historia','historia2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img name="historia" src="historia.gif" border="0" alt="" onload=""></a></td>
<td width="16">&nbsp;</td>
<td width="100" valign="top"><a href="forberedelser.php" target="_top" onClick="MM_nbGroup('down','group1','forberedelser','',1)" onMouseOver="MM_nbGroup('over','forberedelser','forberedelser2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="forberedelser.gif" alt="" name="forberedelser" border="0" onload=""></a></td>
<td width="16">&nbsp;</td>
<td width="70" valign="top"><a href="bokning.php" target="_top" onClick="MM_nbGroup('down','group1','bokning','',1)" onMouseOver="MM_nbGroup('over','bokning','bokning2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="bokning.gif" alt="" name="bokning" border="0" onload=""></a></td>
<td width="17">&nbsp;</td>
<td width="60" valign="top"><a href="lankar.php" target="_top" onClick="MM_nbGroup('down','group1','lankar','',1)" onMouseOver="MM_nbGroup('over','lankar','lankar2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="lankar.gif" alt="" name="lankar" border="0" onload=""></a></td>
<td width="20">&nbsp;</td>
<td width="39" align="center" valign="middle"><a href="index.php"><img src="flaggase.gif" width="35" height="19" border="0" align="bottom"></a></td>
<td width="6">&nbsp;</td>
<td width="38" valign="top"><a href="indexeng.php"><img src="flaggaeng.gif" width="38" height="19" border="0"></a></td>
<td width="18">&nbsp;</td>
</tr>
<tr> 
<td height="1"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table></td>
</tr>
</table>
<map name="Map">
<area shape="rect" coords="129,76,578,104" href="#" onClick="MM_goToURL('parent','http://pilgrimtarja.com');return document.MM_returnValue">
</map>
</body>
</html>
That was the topnavigation...

Here comes the left side navigation..

Code: Select all
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="165" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#E9F1Fe">
<!--DWLayoutTable-->
<tr> 
<td width="148" height="20" valign="top"><img src="file:///C|/.jpg" width="148" height="20"></td>
<td width="17" rowspan="2" align="center" valign="top" bgcolor="#FFFFFF"><img src="file:///C|/.jpg" width="2" height="815"></td>
</tr>
<tr> 
<td height="795" valign="top"><p><font color="#BE458C" size="2" face="Georgia">&nbsp;<br>
&nbsp; Dagsvandring till Istan<strong><font color="#009933" face="Arial, Helvetica, sans-serif"> 
</font></strong></font><font color="#349835" size="2" face="Arial, Helvetica, sans-serif"><strong><a href="dagsvandringar.php" target="_self"><font color="#009933">&nbsp;Läs 
mer här...</font></a><br>
<br>
<img src="file:///C|/.jpg" width="148" height="3"> 
</strong></font></p>
<p><font color="#BE458C" size="2" face="Georgia">&nbsp;Vandring till La 
&nbsp;Concha-bergets topp i &nbsp;Marbella </font><font color="#349835" size="2" face="Arial, Helvetica, sans-serif"><strong><br>
<a href="dagsvandringar.php"><font color="#009933">&nbsp;Läs 
mer här...</font></a><br>
<br>
<img src="file:///C|/.jpg" width="148" height="3"> 
</strong></font></p></td>
</tr>
</table>
</body>
</html>
My problem isn't getting them in, but to get them in the right spot. And not to get them to come up double..

Last edited by herkalees; Apr 28th, 2006 at 12:20.
Reply With Quote
  #6 (permalink)  
Old Apr 27th, 2006, 15:38
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: Serversides included, but not in the right place..

And you said you saved these as .txt?
Reply With Quote
  #7 (permalink)  
Old Apr 27th, 2006, 18:18
Junior Member
Join Date: Apr 2006
Age: 31
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Serversides included, but not in the right place..

Quote:
Originally Posted by sypher
And you said you saved these as .txt?
Yepp
Reply With Quote
  #8 (permalink)  
Old Apr 27th, 2006, 18:24
Junior Member
Join Date: Apr 2006
Age: 31
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Serversides included, but not in the right place..

I have actually changed it a bit now.. Saved them as PHP and put it like this
PHP: Select all

<div id="header"><?php require_once('nav.php'); ?></div>
<p><div id="sidebar"><?php require_once('leftnav.php'); ?></div>
Now my problem is that the side and the main area doesn't come up underneath the top/header bar.. http://www.pilgrimtarja.com look.. I want what's on the right of the header to come underneath - but how? Preferably I also want all of it centered in the page. I have tried doing that (centering) before, but ten it all comes up in a row, header in top, sidenav in the middle, main area underneath. This must be so simple if you know some of the language...
Reply With Quote
  #9 (permalink)  
Old Apr 27th, 2006, 20:32
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: Serversides included, but not in the right place..

First of all, put all ur javascript in an external file, because its annoying
Reply With Quote
  #10 (permalink)  
Old Apr 28th, 2006, 07:36
Junior Member
Join Date: Apr 2006
Age: 31
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Serversides included, but not in the right place..

Ok, but I am afraid I don't really know how to
Reply With Quote
  #11 (permalink)  
Old Apr 28th, 2006, 12:18
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: Serversides included, but not in the right place..

hehe no problem.
Get all your javascript between:
<script language="JavaScript" type="text/JavaScript"> and </script>
Put it in a text file and name it javascript.js.

Now in your main site the header or index, where your <head> is. Put:
<script type="text/javascript" language="JavaScript" src="javascript.js"></script> in your <head> tags.

Be sure not to include any of the <script="javascript> tags and the ending </script> tag. You just need the actual javascript code in the javascript.js file.
Reply With Quote
  #12 (permalink)  
Old Apr 28th, 2006, 12:55
Junior Member
Join Date: Apr 2006
Age: 31
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Red face Re: Serversides included, but not in the right place..

PHP: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<
html>
<
head><script type="text/javascript" language="JavaScript" src="javascript.js"></script>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body onLoad="MM_preloadImages('hem2.gif','kultur2.gif','rutten2.gif','historia2.gif','forberedelser2.gif','bokning2.gif','lankar2.gif')">
<table width="696" height="150" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#009933" id="banner">
<!--DWLayoutTable-->
<tr> 
<td width="696" height="128" align="center" valign="top"><img src="banner.jpg" width="696" height="128" border="0" usemap="#Map"></td>
</tr>
<tr> 
<td height="2"></td>
</tr>
<tr> 
<td height="20" valign="top"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#E9F1FE">
<!--DWLayoutTable-->
<tr> 
<td width="40" height="19">&nbsp;</td>
<td width="34" valign="top"><a href="index.php" target="_top" onClick="MM_nbGroup('down','group1','hem','',1)" onMouseOver="MM_nbGroup('over','hem','hem2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="hem.gif" alt="" name="hem" border="0" onload=""></a></td>
<td width="13">&nbsp;</td>
<td width="60" valign="middle"><a href="kultur.php" target="_top" onClick="MM_nbGroup('down','group1','kultur','',1)" onMouseOver="MM_nbGroup('over','kultur','kultur2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="kultur.gif" alt="" name="kultur" border="0" onload=""></a></td>
<td width="13">&nbsp;</td>
<td width="60" valign="top"><a href="rutten.php" target="_top" onClick="MM_nbGroup('down','group1','rutten','',1)" onMouseOver="MM_nbGroup('over','rutten','rutten2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="rutten.gif" alt="" name="rutten" border="0" onload=""></a></td>
<td width="16">&nbsp;</td>
<td width="60" valign="top"><a href="historia.php" target="_top" onClick="MM_nbGroup('down','group1','historia','',1)" onMouseOver="MM_nbGroup('over','historia','historia2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img name="historia" src="historia.gif" border="0" alt="" onload=""></a></td>
<td width="16">&nbsp;</td>
<td width="100" valign="top"><a href="forberedelser.php" target="_top" onClick="MM_nbGroup('down','group1','forberedelser','',1)" onMouseOver="MM_nbGroup('over','forberedelser','forberedelser2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="forberedelser.gif" alt="" name="forberedelser" border="0" onload=""></a></td>
<td width="16">&nbsp;</td>
<td width="70" valign="top"><a href="bokning.php" target="_top" onClick="MM_nbGroup('down','group1','bokning','',1)" onMouseOver="MM_nbGroup('over','bokning','bokning2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="bokning.gif" alt="" name="bokning" border="0" onload=""></a></td>
<td width="17">&nbsp;</td>
<td width="60" valign="top"><a href="lankar.php" target="_top" onClick="MM_nbGroup('down','group1','lankar','',1)" onMouseOver="MM_nbGroup('over','lankar','lankar2.gif','',1)" onMouseOut="MM_nbGroup('out')"><img src="lankar.gif" alt="" name="lankar" border="0" onload=""></a></td>
<td width="20">&nbsp;</td>
<td width="39" align="center" valign="middle"><a href="index.php"><img src="flaggase.gif" width="35" height="19" border="0" align="bottom"></a></td>
<td width="6">&nbsp;</td>
<td width="38" valign="top"><a href="indexeng.php"><img src="flaggaeng.gif" width="38" height="19" border="0"></a></td>
<td width="18">&nbsp;</td>
</tr>
<tr> 
<td height="1"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table></td>
</tr>
</table>
<map name="Map">
<area shape="rect" coords="129,76,578,104" href="#" onClick="MM_goToURL('parent','http://pilgrimtarja.com');return document.MM_returnValue">
</map>
</body>
</html
Ok I have done that I think Would that help with getting everyting in the right place?

Here's the index page..

PHP: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><script type="text/javascript" language="JavaScript" src="javascript.js"></script>
<title>Pilgrimtarja - guidning i Spanien</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body link="#FFFFFF" onLoad="MM_preloadImages('file:///C|/Documents%20and%20Settings/Owner/My%20Documents/pilgrimtarja/bilder/lankar2.gif')">
<div id="header"><?php require_once('nav.php'); ?></div>
<p><div id="sidebar"><?php require_once('leftnav.php'); ?></div>
</p>
<table width="531" border="0" align="left" bgcolor="#FFFFFF">
  <!--DWLayoutTable-->
  <tr> 
    <td width="258" height="189" valign="top"><div align="left"><font size="5" face="Arial, Helvetica, sans-serif"><strong><font color="#369A37" size="4">Organiserade&nbsp;vandringar: 
        </font><br>
        <font color="#BE458C">Vandra med Pilgrimtarja i det hemligaste h&ouml;rnet 
        av spanien</font></strong></font> <font color="#369A37" size="1" face="Arial, Helvetica, sans-serif"><br>
        Text: Tarja Lyrefelt</font><br>
        <font color="#369A37" size="1" face="Arial, Helvetica, sans-serif">Bild: 
        Antonio Rivera, Tarja vilar i pilgrimsh&ouml;rnet.</font><br>
      </div></td>
    <td width="264" valign="top"><div align="right"><img src="tarajrincon.jpg" name="rincon" width="251" height="187" align="right" id="rincon"></div></td>
  </tr>
  <tr> 
    <td height="477" colspan="2" valign="top"><font color="#BE458C" size="2" face="Georgia">Galicien med 
      sina ljunghedar s&aring; l&aring;ngt &ouml;gat n&aring;r eller de ur&aring;ldriga 
      ekskogarna som ger svalka i sommarhettan. Man skall inte j&auml;mf&ouml;ra 
      Galicien med Costa Del Sols stekheta dagar. Denna landsdel ligger i nordv&auml;stra 
      h&ouml;rnet av Spanien d&auml;r Atlantens friska vindar sveper in &ouml;ver 
      landet som ger det ett behagligt klimat. Mornarna &auml;r friska och kv&auml;llarna 
      ljumma och sammetslena. 
      </font><font color="#BE458C"><p><font size="2" face="Georgia">Jag guidar dig p&aring; kostigar, &ouml;ver romerska broar, kungav&auml;gar 
        fr&aring;n arabernas tid och mycket mer. En vandring d&auml;r alla dina 
        sinnen kommer att bli tillfredsst&auml;llda. Vi kommer att stanna till 
        l&auml;ngs v&auml;gen och bes&ouml;ka pittoreska matst&auml;llen och smaka 
        p&aring; det som Galicien kan bjuda p&aring;. Det fantastiska &auml;r 
        att i denna landsdel har man fortfarande hemodlade gr&ouml;nsaker, egna 
        grisar, egna h&ouml;ns m.m. som de tillagar maten av p&aring; de mindre 
        lantorts restaurangerna. </font></p>
      <p><font size="2" face="Georgia">Du beh&ouml;ver inte vara atlet f&ouml;r att genomf&ouml;ra denna vandring. 
        Med lite tr&auml;ning och bra k&auml;ngor kommer du l&aring;ngt. En tusenmilaf&auml;rd 
        b&ouml;rjar med ett steg. Vi kommer dock inte g&aring; riktigt s&aring; 
        l&aring;ngt utan n&ouml;jer oss med 200,5 km. A tt vara pilgrim idag beh&ouml;ver 
        inte inneb&auml;ra ett katolskt dogma. Jag ger er m&ouml;jligheten att 
        g&aring; i historiens fotsp&aring;r utan n&aring;gra krav p&aring; religi&ouml;st 
        tillh&ouml;rande. </font></p>
      <p><font size="2" face="Georgia"> 
        Vandringen tar 10 dagar och p&aring; v&auml;gen &ouml;vernattar vi p&aring; 
        mindre hostal och kloster. I Madrid, staden som aldrig sover finns det 
        tillf&auml;lle att bes&ouml;ka Prado Museet och sigtseeing i de gamla 
        stadsdelarna.</font></p>
      </font>
      <p><font color="#BE458C" size="2" face="Georgia">V&auml;l m&ouml;tt i historiens fotsp&aring;r<br>
        Pilgrimtarja</font><br>
      </p></td>
  </tr>
  <tr> 
    <td height="45" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <!--DWLayoutTable-->
        <tr> 
          <td width="525" height="11" valign="top"><a href="http://www.sofielyr.com" target="_parent"><font color="#FF00FF"><font color="#369A37" face="Arial, Helvetica, sans-serif"><strong><font size="1">www.sofielyr.</font></strong></font></font><font size="1"><strong><font color="#369A37" face="Arial, Helvetica, sans-serif">com</font></strong></font></a> 
          </td>
        </tr>
        <tr> 
          <td height="16" valign="top" bgcolor="#369A37"><font color="#FFFFFF" size="2" face="Georgia">http://www.pilgrimtarja.com... 
            tel: + 34 666 712525... </font><font size="2" face="Georgia"><a href="mailto: info@pilgrimtarja.com">email:info@pilgrimtarja.com</a></font></td>
        </tr>
        <tr> 
          <td height="13" valign="top"><font color="#BE458C" size="2" face="Arial, Helvetica, sans-serif"><strong>&copy; 
            www.pilgrimtarja.com 2006 - all rights reserved </strong></font></td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td height="0"></td>
    <td></td>
  </tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><br>
</p>
<p><br>
</p>
<div align="left"><br>
</div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>


If you have not yet understood it you are talking to a real dummy here

/SOf

Last edited by Sofie; Apr 28th, 2006 at 12:58.
Reply With Quote
  #13 (permalink)  
Old Apr 28th, 2006, 14:00
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: Serversides included, but not in the right place..

You may want to change the <body onload= command as its currently directed to your C:/ drive.

PHP: Select all

<div id="header"><?php require_once('nav.php'); ?></div>
<p><div id="sidebar"><?php require_once('leftnav.php'); ?></div>
Paste us your css for these two.
Reply With Quote
  #14 (permalink)  
Old Apr 28th, 2006, 15:10
Junior Member
Join Date: Apr 2006
Age: 31
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Serversides included, but not in the right place..

Err.. I don't think I have any... In the properties it says invalid markup and in the CSS styles it says no Css styles..
Reply With Quote
  #15 (permalink)  
Old Apr 28th, 2006, 17:05
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: Serversides included, but not in the right place..

OK, then delete the div tags
Reply With Quote
  #16 (permalink)  
Old Apr 28th, 2006, 17:10
Junior Member
Join Date: Apr 2006
Age: 31
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Serversides included, but not in the right place..

Ok, done - but now it says error in page..
Reply With Quote
  #17 (permalink)  
Old Apr 28th, 2006, 17:55
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: Serversides included, but not in the right place..

kk i put it in dreamweaver, putting
<p></p>
<p></p>
Above the nav include it goes underneath.
Reply With Quote
  #18 (permalink)  
Old Apr 28th, 2006, 19:10
Junior Member
Join Date: Apr 2006
Age: 31
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Serversides included, but not in the right place..

I knew it was something simple like that!! Thank's

I don't know what kk mean but I put this in..
p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>

I am glad I learnt to put aside the java and all that!
However I tried to get it all centered in the page but that didn't work how I wanted it either.. I think it is a bit embarrasing to ask for more but if you have a spare minute... How do I center it all?

Ps I don't know why it says error in page either....
Reply With Quote
  #19 (permalink)  
Old Apr 28th, 2006, 20:08
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: Serversides included, but not in the right place..