Jump to content

Input field 95% and text to the right


lindm

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.