Jump to content

XHTML Error


Twister1004

Recommended Posts

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;
}

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.