Jump to content

Left justify footer.php


travelkind

Recommended Posts

Ok guys I hope this doesn't seem like to simple of a question but I need some help getting my footer to left justify.  The main page (html below) has a reference to require("footer.php"); which I need to have left justified and not in the middle of my page.  What html do I need to put in to make it justify to the left?  Thanks for your help!

 

<?

session_start();

 

require("header.php");

?>

 

<table width="300" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">

<tr>

<form name="form1" method="post" action="checklogin.php">

<td>

<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">

<tr>

<td colspan="3"><strong>Member Login </strong></td>

</tr>

<tr>

<td width="78">Username</td>

<td width="6">:</td>

<td width="294"><input name="myusername" type="text" id="myusername"></td>

</tr>

<tr>

<td>Password</td>

<td>:</td>

<td><input name="mypassword" type="text" id="mypassword"></td>

</tr>

<tr>

<td> </td>

<td> </td>

<td><input type="submit" name="Submit" value="Login"></td>

</tr>

</table>

</td>

</form>

</tr>

</table>

 

<?php

 

session_destroy();

 

require("footer.php");

?>

Link to comment
Share on other sites

bugcoder,

I tried this but it I got a syntax error:

 

<?php

 

session_destroy();

 

<div style="style = "float:left">

require("footer.php");

</div>

?>

 

I guess all html is supposed to be above any php code.  Where was I suppose to put the <div ?  Thanks!

 

Link to comment
Share on other sites

Okay I think you were telling me to make this <div change in the footer.php file?  I tried the following code below but it still didn't work:

 

</div>

 

<div id="footer">

<div id="style" = "float:left">

Copyright &copy 2010  <?php echo $config_administrator; ?>

</div>

</body>

</html>

 

 

Link to comment
Share on other sites

Okay I tried:

<div style="float:left">content</div>

but it the word "content" next to my footer in the middle of the page.

 

I tried an alternative:

 

</div>

 

<div id="footer">

<div style="float:left">

Copyright &copy 2010  <?php echo $config_administrator; ?>

</div>

</body>

</html>

 

This didn't work either.  It is still putting my footer in the middle.  Any  other ideas?  Thanks again for your help.

Link to comment
Share on other sites

Actually ken, if you go to the link he supplied and look at the page source, you'll see that his whole code is messed up. Travel, could you please show the code you have for all three pages, and make sure you use the code tags for your code. That way we can help you out. There are many inconsistencies that need to be fixed and that may be what is causing your problems.

 

Just post the current code by doing something like:

 

header.php

code here

main code

code here

footer.php

code here

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.