Jump to content

Recommended Posts

Hey guys.

 

I have a table which adds rows everytime a new record is added to database. All works fine, however when the table gets too large, the table keeps going but the container div does not expand with it. Cheers for any help.

 

HTML CODE

<table width="475" border="1" frame="above" rules="none" bordercolor="#FF00FF" >
      		<tr>
       	 		<td width="75" rowspan="2" align="left" valign="top"><img src="pictures/nick.jpg" width = "75" height = "70" border="0" align="top" /></td>
        		<td bgcolor="#F3F3F3" width="384" ><?php echo $row3['email']?> <i>wrote</i> @ <?php echo $orgdate?></td>
        	</tr>
      		<tr >
        		<td width="384"><?php echo $row3['comment']?><br />

			<?php 

			if($you != $sessionpid )
			{

				?><a href="delete-message.php">wall-to-wall</a> - <a href="comment.php">comment</a> - <a href="message.php">message</a></td><?php
			}
			else
			{?>
				<a href="delete-message.php">wall-to-wall</a> - <a href ="deletecomment2.php?CID=<?php echo $row3['cid'];?>&PID=<?php echo $pid?>">delete</a> - <a href="comment.php">comment</a> - <a href="message.php">message</a></td>

			<?php } ?>
			</td>
        	</tr>
    	</table>

 

CSS CODE

	#mc-holder
{
position:relative;
padding-top:10px;
border: solid #EAEAEA 1px;
margin: 0px auto;
width:500px;
min-height:320px;
height:auto;
overflow:auto;
}
#mc1
{

float:right;
/*border-bottom:solid #CCCCCC 1px;*/
border-left:solid #CCCCCC 1px;
}
#container
{
margin: 0px auto;
width: 772px;
top: 10px;
min-height:550px;
height:auto;
background-color:#FFFFFF;
padding:0px;
position: relative;
}

Link to comment
https://forums.phpfreaks.com/topic/54805-table-overlap/
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.