Jump to content

Recommended Posts

Hi all,

 

1) I realised after applying php's codes, the contents in 'panel 2' doesn't stay within 'panel 2', apparently the contents went outside of 'panel 2 <div>'. Attached is the picture example. Is there anything amiss which I have done?

 

2) Another thing, I realised the <td> is very far apart from the next <td>, example...

if (!empty($row1['uni2'])) {
echo '<tr><td class="label">Faculty or Course:</td><td>' . $row1['uni2'] . '</td></tr>';
}

<td class="label">Faculty or Course:</td> is apparently very far apart from <td>' . $row1['uni2'] . '</td>

 

As you can see it in the attachment. How do i close up the wide gap? Thanks

 

echo '<div id="panel2">';

	/***University***/

		echo '<table>';
			if (!empty($row1['uni1'])) {
				echo '<br/><tr><td class="row_header">' . $row1['uni1'] . '</td></tr>';

			if (!empty($row1['uni2'])) {
				echo '<tr><td class="label">Faculty or Course:</td><td>' . $row1['uni2'] . '</td></tr>';
			}
			if (!empty($row1['uni3'])) {
				echo '<tr><td class="label">Results:</td><td>' . $row1['uni3'] . '</td></tr>';
			}		
		}
		echo '</table>';



echo '</div>'; //End of Panel 2

 

[attachment deleted by admin]

I would imagine it's something to do with CSS more than the code. Unless there are heaps of spaces printed or tab characters. Have you checked the source of the page in the browser to see if this is the case?

You could try setting the table cell widths to a specific number and see if that helps..

 

Denno

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.