FRIHOSTFORUMSSEARCHFAQTOSBLOGSCOMPETITIONS
You are invited to Log in or Register a free Frihost Account!


PHP homepage recreation problem





Tony The Tiger
I am taking a break from the tutorial. I am trying to recreate my websites index.html page output at www.tonythetiger.frih.net . The index has 3 frames (a header, a sidebar directory and a mainwindow). I have gotten the webpage to pull all the frames correctly as follows:

<html>

<head>
<title>Test PHP Page</title>
</head>

<body>

<table>

<tr valign="top">
<td width="170">


<?php
//inserts the directory file
require("directory.html"); ?>


<Font size=1>
<?php
echo "Copyright © 1999 - " . date('Y') . ", by Antonio Vernón, All Rights Reserved."; ?>


</font>

</td>

<td>

<font size=1>
<?php
//Prints something like: Monday January 15, 2006 05:51:38 AM
echo "This page was loaded on " . date("l F d, Y H:i:s A"); ?>
</font>

<?php
//inserts the frame header file
require("header.html"); ?>



<?php
//inserts the mainwindow file
require("main.html"); ?>



</td>

</tr>

</table>

</body>

</html>


My problem is that in the HTML code for the main window I use a <center></center> tag for a title. However the PHP file above centers the whole frame. What is going on? I have tried to use various align commands to no avail.

P.S. I used another tutorial for a big part of this because the W3 schools tutorial teaches the require command very early on.
Loathing in Fear
Have you allready tried to table align?

Code:
<table align=center;>
Tony The Tiger
Loathing in Fear wrote:
Have you allready tried to table align?

Code:
<table align=center;>


I don't want everything centered. I want to recreate my webpage (www.tonythetiger.frih.net ). The problem is that I have everything left aligned in each frame except the title on the mainwindow. However, this title seems to be making the whole part of the PHP cell representing the HTML frame centered.
Tony The Tiger
Loathing in Fear wrote:
Have you allready tried to table align?

Code:
<table align=center;>



Actually, <table align="left"> worked. I was trying to align just the cell I was worried about unsuccessfully.

Thanks for the help.
Related topics
[Resolved] Object Orientated PHP errors
PHP login/logout problem
PHP include code problem
Problem with PHP
Problem Help out
[RESOLVED] php file upload problem
PHP Form Sending problem
Calling all PHP Gods! 200 frih$ to fix my dynamic sig!
Php while array problem
PHP login script problem
PHP Form Processing Problem
PHP imagecreate + CSS problem.
PHP imagecreate + CSS problem.
Please can anyone help with a php script error/problem?
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.