Hi thanks for comenting.
I already have text-align center in the footer div.
I am also getting another problem.
In ff on subsequent pages (click on a book) the footer doesnt stay at the bottom.
Any solution like float the footer right looses the wrapper background (white) that defines the page.
The page structure for the subsequent pages is:
Show the categories div id cats.
Float a div right to show the content - div right
call the footer function
Code as follows
Code:
<?php
include ('book_sc_fns.php');
// The shopping cart needs sessions, so start one
session_start();
$product_id = $_GET['product_id'];
// get this book out of database
$book = get_book_details($product_id);
do_html_header();
//display left hand block - categories, ads
// get categories out of database
$cat_array = get_categories();
// display as links to cat pages
display_categories($cat_array);
?>
<div id="right">
<h1 class="align-center"><?php echo $book['title'];?></h1>
<?php
display_book_details($book);
//display browse list via ajax
// set url for "continue button"
$target = 'index.php';
if($book['cat_id'])
{
$target = 'show_cat.php?cat_id='.$book['cat_id'];
}
// if logged in as admin, show edit book links
if( check_admin_user() )
{
display_button("edit_book_form.php?isbn=$product_id", 'edit-item', 'Edit Item');
display_button('admin.php', 'admin-menu', 'Admin Menu');
display_button($target, 'continue', 'Continue');
}
else
{
echo '<table width="600"><tr><td>';
display_button("show_cart.php?new=$product_id", 'add-to-cart', 'Add '
.$book['title'].' To My Shopping Cart');
echo '</td><td>';
display_button($target, 'continue-shopping', 'Continue Shopping');
echo '</td></tr></table>';
}
do_html_footer();
?>
Bookmarks