Jump to content

help building a footer..


co.ador

Recommended Posts

That depends entirely on the rest of your code, perhaps some indication as to what you are using now and what your footer requirements are.

 

The most common now is to add another div to your HTML and style it using CSS.

 

 

 

Link to comment
Share on other sites

Right now I have a file called footer.php and i have the following simple code in it.

 

 

        
           <div class="footer">
           <p>Copyright (c) 2009</p>

         </div>

</body>
</html>

 

is that enough?

 

is it now working that great.

 

The CSS is

 

 .footer {
     height: 4em;
}

 

and another page called header.php

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" href="../stylesheets/webpageprueba.css" rel="stylesheet" media="all" />
<title>ShoesStore</title>
<body>

 

but it is not working that good because it is not displaying in the bottom of the page but behind the form...

 

having some difficulties and I need some help

 

in store.php I have added the files header.php and footer.php through the include function as below, is that ok?

 


<?php include("../includes/header.php"); 
?>
<form action="example.php"> 
<fieldset class="primero">
<legend>Search For a store</legend> 

<fieldset>  
<legend>Postal Address</legend>  
<label for="street">Street address</label>  
<input id="street" name="street" type="text" />  
<label for=" suburb">Suburb</label>  
<input id="suburb" name="suburb" type="text" />  
<label for="state">State</label>  
<input id="state" name="state" type="text" />  
<label for="postcode">Postcode</label>  
<input id="postcode" name="postcode" type="text" />  
</fieldset>

<fieldset class="tercero" style="border-color:#FFFFFF" >
<legend>Services</legend> 
<ol>
<li>
  <input type="checkbox" name="example" value="delivery" />Delivery<br />
  <input type="checkbox" name="example" value="tv" />Tv<br />
  <input type="checkbox" name="example" value="parking" />Parking<br />
</li></ol>
</fieldset>
</fieldset> 
<fieldset>  

<?php include("../includes/footer.php"); 
?>

Link to comment
Share on other sites

Right now I have a file called footer.php and i have the following simple code in it.

 

 

        
           <div class="footer">
           <p>Copyright (c) 2009</p>

         </div>

</body>
</html>

 

is that enough?

 

is it now working that great.

 

 

There is no requirement for a footer, if it works for you and you are happy then so be it. If you are trying to accomplish something specific then please ask something more specific.  A website can be plain text if you want it to be.

Link to comment
Share on other sites

I would suggest to structure the page you don't break it up the way you are. I would typically do something like:

 

index.php

[docytype...]
[meta...]
// Maybe include dynamic meta <?php include('meta'); ?>

<html>
<body>

<?php include('header.php'); ?>
<?php include('menu.php'); ?>

[my index page content]

<?php include('footer.php'); ?>

</body>
</html>

 

Just my $.02

 

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.