2012-08-25, 09:18 PM
(2012-08-25, 02:51 PM)NaXuh Wrote: [ -> ]Oh, I see. I looked into it more and did it on my test forum now. It already is "centered" in the table because it has 60% of the table, and the "next question (if you had one)" gets the other 40%.I have only one question so I don't need that second code. Problem is bescause I can't find that part of code you gived to me. This is my code:
To center, find this:
<td width="60%"><br /><input type="text" class="textbox" name="regsecureans" value="" id="regsecureans" style="width: 100%;" /><input type="hidden" name="regsecureq_id" value="{$regsecureq_id}" id="regsecureq_id" /></td> <td align="right" valign="bottom"> {$regq_button} </td>
And replace it all with this:
<td width="100%"><br /><center><input type="text" class="textbox" name="regsecureans" value="" id="regsecureans" style="width: 60%;" /></center><input type="hidden" name="regsecureq_id" value="{$regsecureq_id}" id="regsecureq_id" /></td>
Please note, this removes the "change question" button that only appears if you have more then one question. If you want that still there (for if you ever want another question), replace instead with this code:
<td width="100%"><br /><center><input type="text" class="textbox" name="regsecureans" value="" id="regsecureans" style="width: 60%;" /><input type="hidden" name="regsecureq_id" value="{$regsecureq_id}" id="regsecureq_id" /><br /><br />{$regq_button}</center></td>
Just did this all on my test forum, it should work fine for you. Hope this helps! .
Quote:<fieldset class="trow2">
<script type="text/javascript" src="jscripts/regsecureq.js?ver=100"></script>
<table cellspacing="0" cellpadding="{$theme['tablespace']}">
<tr>
<td colspan="2"><span class="smalltext">{$lang->regq_explain}</span></td>
</tr>
<tr>
<td colspan="2"><br /><span class="smalltext" id="regsecureq" style="font-weight:bold;">{$regsecureq}</span></td>
</tr>
<tr>
<td width="60%"><br />
<center><input type="text" class="textbox" name="regsecureans" value="" id="regsecureans" style="width: 100%;"/></center>
<input type="hidden" name="regsecureq_id" value="{$regsecureq_id}" id="regsecureq_id" /></td>
<td align="right" valign="bottom">
{$regq_button}
</td>
</tr>
<tr>
<td id="regsecureans_status" style="display: none;" colspan="2"> </td>
</tr>
</table>
</fieldset>