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
https://forums.phpfreaks.com/topic/204745-left-justify-footerphp/
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>

 

 

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.

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

Archived

This topic is now archived and is closed to further replies.

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