View Single Post
  #14 (permalink)  
Old Mar 26th, 2007, 16:46
Lchad Lchad is offline
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Tables Alignment problem

Aaron it's a matter of widening the base table cell. You have a table cell with several nested tables within. I widened that cell that was the problem to 147 pixels.

Look for your code
Code: Select all
background="http://www.3d-modelling-art-online.com/templates/test/images/index_26.jpg" width="152" height="138" align="left"><!-- 5 -->
Delete the table between these two bits of code above and below:
Code: Select all
</td>
			<img src="http://www.3d-modelling-art-online.com/templates/test/images/index_26.jpg" width="152" height="138" alt=""></td>
Replace all that you deleted with this code:

Code: Select all
<table width="147" cellpadding="0" cellspacing="0" class="moduletable">
				<tr>
			<td>
						<script language="javascript" type="text/javascript">
		<!--
		function submitbutton_Poll1() {
			var form 		= document.pollxtd1;			
			var radio		= form.voteid;
			var radioLength = radio.length;
			var check 		= 0;

			if ( 'z' != 'z' ) {
				alert('You already voted for this item today.');
				return;
			}
			for(var i = 0; i < radioLength; i++) {
				if(radio[i].checked) {
					form.submit();
					check = 1;					
				}
			}		
			if (check == 0) {
				alert('No selection has been made, please try again');
			}
		}		
		//-->
		</script>		
		<form name="pollxtd1" method="post" action="http://www.3d-modelling-art-online.com/index.php?option=com_poll">

		
		<table width="95%" border="0" cellspacing="0" cellpadding="1" align="center" class="poll">
		<thead>
		<tr>
			<td style="font-weight: bold;">
				Chelsea			</td>
		</tr>
		</thead>
		<tr>

			<td align="center">
				<table width="121" border="0" cellpadding="0" cellspacing="0" class="pollstableborder">
											<tr>
								<td width="20" valign="top" class="sectiontableentry2">
									<input type="radio" name="voteid" id="voteid13" value="13" alt="13" />
								</td>
								<td width="94" align="left" valign="top" class="sectiontableentry2">
									<label for="voteid13">
										Great									</label>

								</td>
							</tr>
												<tr>
								<td class="sectiontableentry1" valign="top">
									<input type="radio" name="voteid" id="voteid14" value="14" alt="14" />
								</td>
								<td align="left" valign="top" class="sectiontableentry1">
									<label for="voteid14">
										Poor 									</label>

								</td>
							</tr>
												<tr>
								<td class="sectiontableentry2" valign="top">
									<input type="radio" name="voteid" id="voteid15" value="15" alt="15" />
								</td>
								<td align="left" valign="top" class="sectiontableentry2">
									<label for="voteid15">
										Excellent									</label>

								</td>
							</tr>
												<tr>
								<td class="sectiontableentry1" valign="top">
									<input type="radio" name="voteid" id="voteid16" value="16" alt="16" />
								</td>
								<td align="left" valign="top" class="sectiontableentry1">
									<label for="voteid16">Improvements</label>

								</td>
							</tr>
					  </table>
			</td>
		</tr>
		<tr>
			<td>
				<div align="center">
					<input type="button" onclick="submitbutton_Poll1();" name="task_button" class="button" value="Vote" />

					&nbsp;
					<input type="button" name="option" class="button" value="Results" onclick="document.location.href='http://www.3d-modelling-art-online.com/index.php?option=com_poll&amp;task=results&amp;id=15';" />
				</div>
			</td>
		</tr>
		</table>

		<input type="hidden" name="id" value="15" />
		<input type="hidden" name="task" value="vote" />

		<input type="hidden" name="j58cacc608417ac66680c639f767b53e2" value="1" />
		</form>
				  </td>
		</tr>
		</table>
Reply With Quote