Page 1 of 1

Basic HTML table question.

Posted: Wed Oct 02, 2002 8:26 pm
by BasXcore
Hi,

I'm a newbe at HTML and i want to learn it with this board. Until this i had no problems with creating extra features and adding HTML to my board.

But now i bounced on a table problem and i'm getting very very confused, i hope you will have some time to look at it. The problem is that the right tables all start at the top. I don't know why...

A sample of the page is here : http://members.lycos.nl/basxcore/phpBB2/portal.php

Down here you will find my the code of the php page :

Code: Select all

<br />

<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
  <tr> 
	<td align="left" valign="bottom"><span class="gensmall">
	<!-- BEGIN switch_user_logged_in -->
	{LAST_VISIT_DATE}<br />
	<!-- END switch_user_logged_in -->
	{CURRENT_TIME}<br /></span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
	<td align="right" valign="bottom" class="gensmall">
		<!-- BEGIN switch_user_logged_in -->
		<a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
		<!-- END switch_user_logged_in -->
		<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
  </tr>
</table>

<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
  <tr>
	<td valign="top" align="left" width="25%">
		<table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">
		  <tr>
			<td colspan="3"  class="catHead" height="25"><span class="genmed"><b>{L_BOARD_NAVIGATION}</b></span></td>
		  </tr>
		  <tr>
			<td class="row1" align="left"><span class="genmed" style="line-height: 150%">
				<a href="{U_PORTAL}">{L_HOME}</a><br />
				<a href="{U_INDEX}">{L_FORUM}</a><br />
				<a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a><br />
				<a href="{U_FAQ}">{L_FAQ}</a><br />
				<a href="{U_SEARCH}">{L_SEARCH}</a><br />
				&nbsp;
			</span></td>
		  </tr>
</table>
<table width="100%" cellpadding="1" cellspacing="1" border="0">
<td height="15" align="left" valign="top"><span class="gensmall"></span></td>
</table>
<table width="100%" class="forumline">

		  <tr>
			<td class="catHead" height="25"><span class="genmed"><b>{L_STATISTICS}</b></span></td>
		  </tr>
		  <tr>
			<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS}<br />{NEWEST_USER}<br /><br/>{TOTAL_POSTS} {TOTAL_TOPICS}<br />&nbsp;</span></td>
		  </tr>

</table>
<table width="100%" cellpadding="1" cellspacing="1" border="0">
<td height="15" align="left" valign="top"><span class="gensmall"></span></td>
</table>
<table  width="100%" class="forumline">


		  <tr>
			<td class="catHead" height="25"><span class="genmed"><b>Links</b></span></td>
		  </tr>
		  <tr>
			<td class="row1" align="center"><a href="http://smartor.is-root.com" target="_blank"><img src="images/smartorsite_logo.gif" width="88" height="31" alt="Smartor Site" border="0" vspace="3"></a></td>
		  </tr>

		</table>
	</td>

	<td valign="top" width="45%">	
		<table width="95%" cellspacing="1" cellpadding="3" border="0" align="center" class="forumline">
		<!-- BEGIN welcome_text -->
		  <tr>
			<td class="catHead" height="25"><span class="genmed"><b>{L_NAME_WELCOME}</b></span></td>
		  </tr>
		  <tr>
			<td class="row1" align="left"><span class="gensmall" style="line-height:150%">{WELCOME_TEXT}<br />&nbsp;</span></td>
		  </tr>

</table>
<!-- END welcome_text -->

<table width="95%" cellpadding="1" cellspacing="1" border="0" align="center">
<td height="15" align="center" valign="top"><span class="gensmall"></span></td>

</table>

<!-- BEGIN fetchpost_row -->
<table  width="95%" class="forumline" align="center" class="forumline">
		  <tr>
			<td class="catHead" height="25"><span class="genmed"><b>{L_ANNOUNCEMENT}: {fetchpost_row.TITLE}</b></span></td>
		  </tr>
		  <tr>
			<td class="row2" align="left" height="24"><span class="gensmall">{L_POSTED}: <b>{fetchpost_row.POSTER}</b> @ {fetchpost_row.TIME}</span></td>
		  </tr>
		  <tr>
			<td class="row1" align="left"><span class="gensmall" style="line-height:150%">{fetchpost_row.TEXT}<br /><br />{fetchpost_row.OPEN}<a href="{fetchpost_row.U_READ_FULL}">{fetchpost_row.L_READ_FULL}</a>{fetchpost_row.CLOSE}</span></td>
		  </tr>
		  <tr>
			<td class="row3" align="left" height="24"><span class="gensmall">{L_COMMENTS}: {fetchpost_row.REPLIES} :: <a href="{fetchpost_row.U_VIEW_COMMENTS}">{L_VIEW_COMMENTS}</a> (<a href="{fetchpost_row.U_POST_COMMENT}">{L_POST_COMMENT}</a>)</span></td>
		  </tr>

		<!-- END fetch_post_row -->


		</table>

<table width="95%" cellpadding="1" cellspacing="1" border="0" align="center">
<td height="15" align="center" valign="top"><span class="gensmall"></span></td>

</table>

	</td>

	<td valign="top" align="right" width="30%">
		<table width="100%" cellspacing="1" cellpadding="3" border="0" align="right" class="forumline">
		  <tr>
			<td class="catHead" height="25" align="right" ><span class="genmed"><b>{L_NAME_WELCOME} {U_NAME_LINK}</b></span></td>
		  </tr>
		  <tr>
			<td class="row1" align="left"><span class="gensmall">
				<!-- BEGIN switch_user_logged_in -->
				<center><br />{AVATAR_IMG}</center>
				<br />{LAST_VISIT_DATE}<br />
				<!-- END switch_user_logged_in -->
				<br />{CURRENT_TIME}<br /><br />{S_TIMEZONE}</span>
			</td>
		  </tr>
</table>


<table width="100%" cellpadding="1" cellspacing="3" border="0" align="right">
<td height="15" align="right" valign="top"><span class="gensmall"></span></td>

</table>
<table  width="100%" class="forumline" align="right">
		<!-- BEGIN switch_user_logged_out -->
		<form method="post" action="{S_LOGIN_ACTION}">
		  <tr>
			<td class="catHead" height="25" align="right" ><span class="genmed"><b>{L_LOGIN}</b></span></td>
		  </tr>
		  <tr> 
			<td class="row1"><span class="gensmall" style="line-height=150%">
			<input type="hidden" name="redirect" value="{U_PORTAL}" />
			{L_USERNAME}:<br /><input class="post" type="text" name="username" size="15" /><br />
			{L_PASSWORD}:<br /><input class="post" type="password" name="password" size="15" /><br />
			<input class="text" type="checkbox" name="autologin" />&nbsp;{L_REMEMBER_ME}<br/>
			<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /><br /><br /><a href="{U_SEND_PASSWORD}" class="gensmall">{L_SEND_PASSWORD}</a><br /><br />{L_REGISTER_NEW_ACCOUNT}<br />&nbsp;</span></td>
		  </tr>
		</form>

</table>
		<!-- END switch_user_logged_out -->

<table width="100%" cellpadding="1" cellspacing="3" border="0" align="right">
<td height="15" align="right" valign="top"><span class="gensmall"></span></td>

</table>



		<table  width="100%" class="forumline" align="right">
		  <tr>
			<td class="catHead" height="25"><span class="genmed"><b>{L_WHO_IS_ONLINE}</b></span></td>
		  </tr>
		  <tr>
			<td class="row1" align="right" ><span class="gensmall">{TOTAL_USERS_ONLINE}<br /><br />{LOGGED_IN_USER_LIST}<br /><br /><center>[ <a href="{U_VIEWONLINE}">{L_VIEW_COMPLETE_LIST}</a> ]</center><br />{RECORD_USERS}<br />&nbsp;</span></td>
		  </tr>

</table>


<table width="100%" cellpadding="1" cellspacing="3" border="0" align="right" >
<td height="15" align="right" valign="top"><span class="gensmall"></span></td>

</table>
<table  width="100%" class="forumline" align="right">
		  <tr>
			<td class="catHead" height="25" align="right" ><span class="genmed"><b>{L_POLL}</b></span></td>
		  </tr>
		  <tr>
			<td class="row1" align="left"><span class="gensmall">
				<form method="post" action="{S_POLL_ACTION}">
				<center><b>{S_POLL_QUESTION}</b></center><br />
				<!-- BEGIN poll_option_row -->
				<input type="radio" name="vote_id" value="{poll_option_row.OPTION_ID}">{poll_option_row.OPTION_TEXT}&nbsp;[{poll_option_row.VOTE_RESULT}]<br />
				<!-- END poll_option_row -->
				<br />
				<!-- BEGIN switch_user_logged_out -->
				<center>{L_LOGIN_TO_VOTE}</center>
				<!-- END switch_user_logged_out -->
				<!-- BEGIN switch_user_logged_in -->
				<center><input type="submit" class="mainoption" name="submit" value="{L_VOTE_BUTTON}" {DISABLED}></center>
				<input type="hidden" name="topic_id" value="{S_TOPIC_ID}">
				<input type="hidden" name="mode" value="vote">
				<!-- END switch_user_logged_in -->
				</form><br />
			</span></td>
		  </tr>
		</table>
	</td>
  </tr>
</table>

<br />

Thanks in advance, Bas.

Posted: Wed Oct 02, 2002 8:31 pm
by Mr. Nissen
BasXcore wrote: The problem is that the right tables all start at the top.

Huh? I'm assuming you want the tables on the right of the page to be somewhere else? Maybe you can elaborate a tad.

Thanks

Posted: Wed Oct 02, 2002 8:39 pm
by BasXcore
Mr. Nissen wrote:
BasXcore wrote:The problem is that the right tables all start at the top.

Huh? I'm assuming you want the tables on the right of the page to be somewhere else? Maybe you can elaborate a tad.

Thanks


Well, all the right tables overlap each other. That's what i don't want.

________________________
| main table |
|_______________________ |
|| Tsub1 || Tsub2 || Tsub3 ||
||______||______||_______||
|| Tsub4 || Tsub5 || Tsub6 ||
||______||______||_______||

Table 3 and 6 overlap each other.

Thanks, Bas.