Jump to content

Beginner with a table issue (i think)


Chezshire

Recommended Posts

Hi -- My problem is simple - my tags are acting funny. IF you go to the url, you'll see i have three pull down menues with uneven spaces (one with a hugh space - HUGH). I've tried a few things to resolve it but nothing gets them to flow together :(

 

Help?

 

http://xpg.us/cerebra/proposal.php

 

 

<table border="0" cellpadding="6" cellspacing="0" width="95%">
<tr><form name="formName" method="post" action="<?php echo $PHP_SELF . "?id=" . $record["id"]; ?>" enctype="multipart/form-data">

<td colspan="2"><h1 class="spaceafter"><font color="#A5B9D5"><?php echo $action; ?> Cerebra Character Proposal</font></h1>
<p class="spaceafter">This form is for submitting a tight, clean, character rough. We do not need to know the exact height and weight of the character or who they are necessarily to the infinite degree. What we do want is a tight 'snapshot' of the character you wish to create, what their powers are and how they would fit into the world of XPG. If you have questions about filling out this form, please contact a <a href="mailto:chezshire@gmail.com, mike@digitalsolecism.net, LordOneEyedWolf@yahoo.com, apollodonis@hotmail.com, scatter.heart@live.com">SITE MENTOR</a>. <?php if ($id) { echo " <a href='/cerebra/display.php?id=$id' title='Display this record in a new window' target='_blank'>Display this record in a new window.</a>"; } ?>
</p>
</td>
</tr>

<tr>

<td align="right" valign="top">
	<p><b>CHARACTER OUTLINE:</b></font><br>
	<span class="fineprint">Please detail your character concept and powers here for XPG's Staff to review. Please keep the outline to 500 words or less. Thank you.</p>
</td>
<td>
<p><textarea name='PLAYERNOTES' cols='65' rows='20' wrap='virtual'><?php echo $record["playernotes"]; ?></textarea>
</td>
</tr>
<tr>

	<td width="40%" align="right"><p><b>CODENAME:</b></p></td>
	<td><p><input type="text" name="CODENAME" size="65" value="<?php echo $record["codename"];
	?>        PROPOSAL" ></td>
</tr>
<tr>
	<td align="right"><p><b>LEGAL NAME:</b></p></td>
	<td><p><input type="text" name="NAME" size="65" value="<?php echo $record["name"]; ?>"></td>
</tr>
<tr>	
	<td align="left"><p><b>IDENTITY STATUS:</b></p></td>
	<td ><select name="IDENTITYSTATUS">
	<option value="secret">Secret</option>
	<option value="public"<?php if ($record["identitystatus"]=="public") { echo " selected"; }?>>Public</option>
	</select></td>

	<td align="left"><p><b>CHARACTER TYPE:</b></p></td>
	<td><select name="OCFCDB">
	<option value="OC">OC</option>
	<option value="FC"<?php if ($record["ocfcDB"]=="FC") { echo " selected"; } ?>>FC</option>
	</select></td>

	<td align="left"><p><b>D.O.B.:</b> <span class="fineprint">(YYYY-MM-DD)</span></p></td>
	<td>
	<input type="text" name="DATEOFBIRTH" size="8" value="<?php echo $record["dateofbirth"]; ?>" />
	</td>
</tr>
<tr>

Link to comment
Share on other sites

try this? one of your tds was off you had

 

<td >

instead of <td>

 

<table border="0" cellpadding="6" cellspacing="0" width="95%">
<tr><form name="formName" method="post" action="<?php echo $PHP_SELF . "?id=" . $record["id"]; ?>" enctype="multipart/form-data">

   <td colspan="2"><h1 class="spaceafter"><font color="#A5B9D5"><?php echo $action; ?> Cerebra Character Proposal</font></h1>
   <p class="spaceafter">This form is for submitting a tight, clean, character rough. We do not need to know the exact height and weight of the character or who they are necessarily to the infinite degree. What we do want is a tight 'snapshot' of the character you wish to create, what their powers are and how they would fit into the world of XPG. If you have questions about filling out this form, please contact a <a href="mailto:chezshire@gmail.com, mike@digitalsolecism.net, LordOneEyedWolf@yahoo.com, apollodonis@hotmail.com, scatter.heart@live.com">SITE MENTOR</a>. <?php if ($id) { echo " <a href='/cerebra/display.php?id=$id' title='Display this record in a new window' target='_blank'>Display this record in a new window.</a>"; } ?>
   </p>
   </td>
</tr>

<tr>

   <td align="right" valign="top">
      <p><b>CHARACTER OUTLINE:</b></font><br>
      <span class="fineprint">Please detail your character concept and powers here for XPG's Staff to review. Please keep the outline to 500 words or less. Thank you.</p>
   </td>
   <td>
   <p><textarea name='PLAYERNOTES' cols='65' rows='20' wrap='virtual'><?php echo $record["playernotes"]; ?></textarea>
   </td>
</tr>
<tr>

      <td width="40%" align="right"><p><b>CODENAME:</b></p></td>
      <td><p><input type="text" name="CODENAME" size="65" value="<?php echo $record["codename"];
      ?>        PROPOSAL" ></td>
</tr>
<tr>
      <td align="right"><p><b>LEGAL NAME:</b></p></td>
      <td><p><input type="text" name="NAME" size="65" value="<?php echo $record["name"]; ?>"></td>
</tr>
   <tr>   
      <td align="left"><p><b>IDENTITY STATUS:</b></p></td>
      <td ><select name="IDENTITYSTATUS">
      <option value="secret">Secret</option>
      <option value="public"<?php if ($record["identitystatus"]=="public") { echo " selected"; }?>>Public</option>
      </select></td>

      <td align="left"><p><b>CHARACTER TYPE:</b></p></td>
      <td<select name="OCFCDB">
      <option value="OC">OC</option>
      <option value="FC"<?php if ($record["ocfcDB"]=="FC") { echo " selected"; } ?>>FC</option>
      </select></td>
      
      <td align="left"><p><b>D.O.B.:</b> <span class="fineprint">(YYYY-MM-DD)</span></p></td>
      <td>
      <input type="text" name="DATEOFBIRTH" size="8" value="<?php echo $record["dateofbirth"]; ?>" />
      </td>
   </tr>
<tr>


Link to comment
Share on other sites

two cells directly on top of each other will always be the same width. The shorter on will always stretch to the length of the one on top of it. This is just how tables work.

 

I didn't want to register so I cant see your exact problem, but a few ideas would be to:

 

-divide the bottom cell in two and then add a 'colspan =' on the above cell.

-use align right/left to align the pulldowns in the cell where you want them.

-use style attributes like padding or margin to move the pulldown.

-Simply make the pulldowns and the cells the same width so there is no problem at all. You can adjust the width of a select box pretty easilly using "size=25" or whatever length you want them both to be.

 

I hope this helps.

 

James

Link to comment
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.