PDA

View Full Version : My page will not expand height wise...


kona72
04-11-2007, 06:45 PM
Hey All,

I am just completing a site where the pics are drawn from a DB so the page height will be somewhat dynamic. The problem is it is not cooperating!!

This is a link to the page live so you can see what i mean....

http://www.krasemannart.com/newsite/featured.php

Here is the css...


*{
margin:0;
padding:0;
}
body{
background:#CCC url("../images/body/bckgrd.jpg") ;
font:11px Arial, Helvetica, sans-serif;
color:#666666;
text-align: center;
min-width:780px;
min-height:253px;
}
form {
height: 400px;
width: 350px;
padding: 20px;
}
a:link {
color: #006699;
text-decoration: none;
}

a:visited {
text-decoration: none;
color: #006699;
}
a:hover {
text-decoration: none;
color: #0033FF;
}
a:active {
text-decoration: none;
color: #006699;
}
#wrapper{
text-align: left;
width:774px;
margin: auto;
}

#header{
background: url(../images/krasemann_01.jpg) ;
height:317px;
}

#content{
background:url(../images/krasemann_07.jpg);
color:#666666;
margin-top:0px;
margin-left:0px;
margin-right:0px;
}
#content p{
padding:5px 15px;
margin-left:180px;
margin-right:2px;
}
.subheading{
font:bolder 14px Arial, Helvetica, sans-serif;
color: #B68F4A;
}

#images{
width: 500px;
marging-left: 121px;
margin-right:50px;
float: right;
}

#navigation {
height: 233px;
width: 121px;
background: url(../images/krasemann_03.jpg);
padding-top: 20px;
padding-right: 5px;
padding-left: 45px;
font-size: 12px;
font-weight: bolder;
color: #FFFFFF;
float:left;
}

/*#navigation p {
float: right;
width: 110px;
font: bolder 12px Arial, Helvetica, sans-serif;
color: #FFFFFF;
display:inline;
}*/
#navigation a{
color: #FFFFFF;
text-decoration:none;
}
#navigation a:link {
color: #FFFFFF;
text-decoration: none;
}
#navigation a:hover {
color: #333;
}



#footer{
height:46px;
background: url(../images/krasemann_10.jpg);
padding:0px;
}
.footer_text{
font:9px Arial, Helvetica, sans-serif;
color: #333333;
text-align: center;
}
#repeat{
margin:10px 10px;
}
.clear{
clear:both;
height:0;
font:0px;
line-height:0;
}
img.floatLeft {
float: left;
margin: 4px;
}
img.floatRight {
float: right;
margin: 8px;
}
img.floatNone {
float: none;
margin: 4px;
}

#site {
margin: 20px 20px 40px 45px;
padding: 5px;
width: 500px;
}
.subheadingsmall {

font:bold 12px Arial, Helvetica, sans-serif;
color: #333333;
}
.small_text {
font:9px Arial, Helvetica, sans-serif;
color: #999999;
text-align: left;
}


and here is the page in question....


<?php require_once('Connections/krasemann.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

$currentPage = $_SERVER["PHP_SELF"];

mysql_select_db($database_krasemann, $krasemann);
$query_rsGallery = "SELECT * FROM gallery ORDER BY title ASC";
$rsGallery = mysql_query($query_rsGallery, $krasemann) or die(mysql_error());
$row_rsGallery = mysql_fetch_assoc($rsGallery);
$totalRows_rsGallery = mysql_num_rows($rsGallery);

$queryString_rsGallery = "";
if (!empty($_SERVER['QUERY_STRING'])) {
$params = explode("&", $_SERVER['QUERY_STRING']);
$newParams = array();
foreach ($params as $param) {
if (stristr($param, "pageNum_rsGallery") == false &&
stristr($param, "totalRows_rsGallery") == false) {
array_push($newParams, $param);
}
}
if (count($newParams) != 0) {
$queryString_rsGallery = "&" . htmlentities(implode("&", $newParams));
}
}
$queryString_rsGallery = sprintf("&totalRows_rsGallery=%d%s", $totalRows_rsGallery, $queryString_rsGallery);
?>
<!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=iso-8859-1" />
<title>.:: Krasemann Art ::.</title>
<link href="css/styles.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="wrapper">
<div id="header"></div>
<div id="content">
<div id="navigation">
<?php include("nav.php"); ?>
</div>
<div id="content p"><p>&nbsp;</p>
<p>Stephen's Featured Paintings</p>
<p><div id="images">
<?php do { ?>
<table width="500" border="0" cellspacing="0" >
<tr>
<td align="center" valign="top"><div align="center"><a href="control/file2/<?php echo $row_rsGallery['full']; ?>" target="_blank"><img src="control/file/<?php echo $row_rsGallery['thumb']; ?>" border="0" /></a><br />
<strong><?php echo $row_rsGallery['title']; ?><br />
</strong><?php echo $row_rsGallery['size']; ?><br />
<br />
<?php echo $row_rsGallery['desc']; ?><br />
<br />
<?php echo $row_rsGallery['price']; ?>
<br />
<br />
<br />
</div></td>
</tr>
</table>
<?php } while ($row_rsGallery = mysql_fetch_assoc($rsGallery)); ?>

</div></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp; </p>
</div>
</div>
<div id="footer">&nbsp;</div>
</div>
</body>
</html>
<?php
mysql_free_result($rsGallery);
?>

domedia
04-11-2007, 06:49 PM
remove the min-height and I think you'll be fine

davidj
04-11-2007, 06:53 PM
remove the dw gen code and you will be even better than fine

kona72
04-11-2007, 07:21 PM
remove the dw gen code and you will be even better than fine


:)

Ouch.... I know, I know.... I suck... I am slowly but surely getting to learn it.. Self employed, trying to learn CSS and PHP AND trying to have a life is tough....

Hey Dom,

Removed the min-height and nothing.... Hmmmm...

domedia
04-11-2007, 10:21 PM
All your image containers are floated to the right, but you never clear them.

kona72
04-12-2007, 02:00 AM
Oh Man!!

I feel like a dope!!

Thanks for the fresh eyes Dom!!