Jump to content

not understanding


mindapolis

Recommended Posts

Hi, can someone help me figure out why the logo div isn't centering? 

 

<?php
require_once("functions.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" />
<title>Untitled Document</title>
<style type="text/css">
td {
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: #30C;
border-right-color: #30C;
border-bottom-color: #30C;
border-left-color: #30C;
}
</style>
<link href="doggyTreats.css" rel="stylesheet" type="text/css" />
</head>

<body>

<?php
[color=yellow]logo();[/color]
navBar();
echo "<div id=\"mainContent\">";
echo "<form action=\"\" method=\"post\" name=\"catalog\">";
  
DatabaseConnection();  

  $query = "SELECT * FROM treats"; 
        $result_set = mysql_query($query) or die(mysql_error());
$i = 0;

        echo "<table>";
        while ($row = mysql_fetch_array($result_set))
        {
	echo"<tr><td width=\"2s00px\"><img src=\"{$row['product_pic']}\" /></td><td width=\"200px\">{$row['product_title']}.<br /><br />{$row['product_Description']}.<br /> Price:  \${$row['price']}.<br /><br />Quantity <input name=\"quantity\" type=\"text\" size=\"2\" /></td></tr>";
        }
	echo "<tr>"; 
		echo "<td><input name=\"submit\" type=\"button\" value=\"Proceed to Checkout\" />"; 
	echo "</table>";    
	echo "</form>";
echo "</div>";
footer();
?>
</body>
</html>

 

#navBar {
background-color: #060;
width: 200px;
padding-top: 50px;
padding-bottom: 250px;
float: left;
}
#navBar #menu {
margin-right: 6px;
}

.menuOption {
background-image: url(assets/bone2a.gif);
background-repeat: no-repeat;
padding-bottom: 25px;
list-style-type: none;
height: 20px;
padding-top: 26px;
text-align: center;
}
body {
background-color: #0089cc;
}[color=yellow]
#logo  {
text-align: center;
margin-top: 5px;
height: 123px;
width: 182px;
}[/color]
#footer {
font-style: italic;
text-align: center;
}
.shoppingCart tr th {
padding: 5px;
}
.shoppingCart tr td {
padding: 5px;
}
#mainContent {
width: 350px;
margin-top: 30px;
}

 

<?php
[color=yellow]function logo()
{
	echo "<div id=\"logo\">";
	echo "<img src=\"assets/logo.gif\" alt=\"logo\" />"; 
	echo "</div>";	
}[/color]
function footer()
{
	echo "<div id = \"footer\">";
	echo "Auntie Vic\'s Treatery <br />";
	echo "PO Box 34092 <br />";
	echo "Clermont, IN 46234 <br />";
	echo "317-701-0343 <br />";
	echo "<a href=\"mailto:[email protected]\">Email Us</a>";
	echo "</div>";
}  
function navBar()
{

	    echo "<div id = \"navBar\">";
		echo "<ul id=\"menu\">";
		echo "<li class=\"menuOption\"><a href=\"index.html\">Home</a></li>";
		echo "<li class=\"menuOption\"><a href=\"aboutUs.html\">Management Team </a></li>";
			echo "<li class=\"menuOption\"><a href=\"treats.html\">Treats </a></li>";
		echo "<li class=\"menuOption\"><a href=\"charities.html\">Supported Charities</a></li>";
		echo "<li class=\"menuOption\"><a href=\"order.html\">Orders</a></li>";
		echo "</ul>";
		echo "</div>";
}
?>

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/249187-not-understanding/
Share on other sites

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.