visitor Posted October 18, 2009 Share Posted October 18, 2009 Hi I'd like to have the descriptions (i.e. ISIN, CURRENCY etc.) right-aligned and the fields all the same length. What's the easiest way to achieve this, please? Has anyone got an idea? Thanks visitor <div> <fieldset> <legend>IDENTIFICATION OF FUND</legend><br> <table width="580px" border="0"> <tr> <td>ISIN <input type="text" name="isin" value="<?php echo $_POST['ISIN'];?>" size="70"></td> <tr> <td>CURRENCY <input type="text" name="currency" value="<?php echo $_POST['CURRENCY'];?>" size="1"></td> </tr> <tr> <td>FUND NAME <input type="text" name="fund_name" value="<?php echo $_POST['FUND NAME'];?>" size="30"></td> </tr> <tr> <td>FUND COMPANY <input type="text" name="fund_company" value="<?php echo $_POST['FUND COMPANY'];?>" size="15"></td> </tr> <tr> <td>FUND CATEGORY <input type="text" name="fund_category" value="<?php echo $_POST['FUND CATEGORY'];?>" size="15"></td> </tr> <tr> <td>FUND STATUS <input type="text" name="fund_status" value="<?php echo $_POST['FUND STATUS'];?>" size="3"></td> </tr> <tr> <td>N.A.V. <input type="text" name="nav" value="<?php echo $_POST['N.A.V.'];?>" size="7"></td> </tr> <tr> <td>N.A.V. DATE <input type="text" name="nav_date" value="<?php echo $_POST['N.A.V. DATE'];?>" size="7"></td> </tr> <tr> <td>DOMICILE <input type="text" name="domicile" value="<?php echo $_POST['DOMICILE'];?>" size="15"></td> </tr> <tr> <td>FUND STRATEGY <input type="text" name="fund_strategy" value="<?php echo $_POST['FUND STRATEGY'];?>" size="30"></td> </tr> <tr> <td>PRIMARY STRATEGY <input type="text" name="primary_strategy" value="<?php echo $_POST['PRIMARY STRATEGY'];?>" size="30"></td> </tr> <tr> <td>SECONDARY STRATEGY <input type="text" name="secondary_strategy" value="<?php echo $_POST['SECONDARY STRATEGY'];?>" size="30"></td> </tr> <tr> <td>INCEPTION DATE <input type="text" name="inception_date" value="<?php echo $_POST['INCEPTION DATE'];?>" size="7"></td> </tr> <tr> <td>CURRENT ASSETS <input type="text" name="current_assets" value="<?php echo $_POST['CURRENT ASSETS'];?>" size="15"></td> </tr> <tr> <td>INVESTMENT OBJECTIVES <input type="text" name="investment_objectives" value="<?php echo $_POST['INVESTMENT OBJECTIVES'];?>" size="15"></td> </tr> <tr> <td>BENCHMARK <input type="text" name="benchmark" value="<?php echo $_POST['BENCHMARK'];?>" size="15"></td> </tr> <tr> <td>RISK APPETITE <input type="text" name="risk_appetite" value="<?php echo $_POST['RISK APPETITE'];?>" size="15"></td> </tr> <tr> <td>GEOGRAPHICAL EXPOSURE <input type="text" name="geographical_exposure" value="<?php echo $_POST['GEOGRAPHICAL EXPOSURE'];?>" size="15"></td> </tr> <tr> <td>UNIQUE FEATURE <input type="text" name="unique_feature" value="<?php echo $_POST['UNIQUE FEATURE'];?>" size="15"></td> </tr> <tr> <td>LAST AUDIT <input type="text" name="last_audit" value="<?php echo $_POST['LAST AUDIT'];?>" size="7"></td> </tr> </table> </fieldset> </div> Link to comment https://forums.phpfreaks.com/topic/178095-problem-with-fieldset/ Share on other sites More sharing options...
haku Posted October 18, 2009 Share Posted October 18, 2009 HTML <td class="fieldset">description<input></td> CSS: td.fieldset { text-align:right; } td.input { float:left; } Link to comment https://forums.phpfreaks.com/topic/178095-problem-with-fieldset/#findComment-939055 Share on other sites More sharing options...
visitor Posted October 18, 2009 Author Share Posted October 18, 2009 Hi haku Yes, works fine...! Thanks so much for that. If I want know to increase the length of those fields... how am I gonna do this? Thanks Link to comment https://forums.phpfreaks.com/topic/178095-problem-with-fieldset/#findComment-939058 Share on other sites More sharing options...
visitor Posted October 18, 2009 Author Share Posted October 18, 2009 Hi Got it! Thanks Link to comment https://forums.phpfreaks.com/topic/178095-problem-with-fieldset/#findComment-939062 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.