Twister1004 Posted February 6, 2010 Share Posted February 6, 2010 I'm having a bit of an issue. Its more of CSS, XHTML, and PHP error in one I suppose. if you wish to understand my issue better, please look at this website: angela.ulmb.com. Any help is very appreciated. Objective: Fix the index page to where the copyright is on the very bottom instead the right. Problem: I've tried some debugging and I think I've been missing a tag or something, because Ive tried a CSS tags and reformed it, I've also tried to debug in PHP, and I've also tried to take out some tags. However, they dont seem to be working. Here is the index: <?php include("include.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Kids Club Book Reviews - For all childens books</title> <link rel="stylesheet" type="text/css" href="Style.css"/> <!--[if IE]> <link rel="stylesheet" type="text/css" href="ieStyle.css"/> <![endif]--> <style type="text/css"> .body .content #text{ width:690px; min-height:300px; } .body .news{ width:185px; } </style> </head> <body> <?php include("body.php"); ?> <div class="content"> <div id="text"> <center><strong>New Books:</strong></center> <?php getNewBooks(); ?> </div> </div> <?php include("footer.php"); ?> Function page with issues: function getNewBooks(){ $getData = mysql_query("SELECT * FROM `books` WHERE `reviewdate` LIKE '%".date("F")."%' ORDER BY `id` DESC"); while($data = mysql_fetch_array($getData)){ $WordLimit = stripslashes(substr($data['review'], 0, 100)); echo " <span style=\"position:relative; width:230px; min-height:180px; float:left; \"> <a href=\"books.php?i=".$data['id']."&t=".stripslashes($data['title'])."\"><img style=\"float:left;\" src=\"".$data['image']."\" alt='Book picture' width=\"100px\" /></a> <i><strong>".stripslashes($data['title'])."</strong></i><br/> Review Rating: ".$data['rating']."<br/> ".$WordLimit." ... <a href=\"books.php?i=".$data['id']."&t=".stripslashes($data['title'])."\">Full Review</a> </span> "; } } Here is my CSS part concerning this issue: .body .content{ width:690px; min-height:400px; background-color:#956541; } .body .content #text{ width:600px; margin-left:25px; margin-top:10px; min-height:500px; background-color:#231545; } Quote Link to comment Share on other sites More sharing options...
vinpkl Posted February 6, 2010 Share Posted February 6, 2010 if you want to have copyright at the bottom then simply just add clear:both .body #copyrights{ text-align:center; font-size:12px; font-family:Times New Roman, Georgia; width:900px; clear:both; } vineet Quote Link to comment Share on other sites More sharing options...
Twister1004 Posted February 6, 2010 Author Share Posted February 6, 2010 if you want to have copyright at the bottom then simply just add clear:both .body #copyrights{ text-align:center; font-size:12px; font-family:Times New Roman, Georgia; width:900px; clear:both; } vineet Thank you very much. This has fixed my issue. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.