lindm Posted November 27, 2009 Share Posted November 27, 2009 I have the form setup below: <table width="500" border="0"> <tr> <td width="100"> <input type="text" name="textfield" id="textfield" style="width:95%;"/>% </td> <td> </td> </tr> </table> As you see the %-sign comes on a second row...I want it to come next to the field, but still keeping the width at 95%. In other words is it possible for the 95% to be 95% of the width of the cell minus the text width? Link to comment https://forums.phpfreaks.com/topic/183159-input-field-95-and-text-to-the-right/ Share on other sites More sharing options...
vinpkl Posted November 28, 2009 Share Posted November 28, 2009 for best results use 'px' instead of '%' in width width:95px; vineet Link to comment https://forums.phpfreaks.com/topic/183159-input-field-95-and-text-to-the-right/#findComment-966888 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.