Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resolution problem bcoz of Fixed textbox size

Status
Not open for further replies.

nith1783

Programmer
Aug 24, 2007
6
IN
i have lister page which listing all user details in that i have text box in table head for filtering purpose bcoz of fixed size of text box if i change my resolution alignment is changing and horizontal bar is appearing how to avoid this..

Is there any way to make the text box size as relative of by giving percentage it should fix to all resolutions


Thanks in Advance
 
If I understand you correctly, you want to assign a percentage for the textbox width? If so, this works in IE:
Code:
<style>.t{width:100%;}</style>

<table width="100%">
  <tr>
    <td><input type="text" class="t"></td>
    <td><input type="text" class="t"></td>
  </tr>
  <tr>
    <td><input type="text" class="t"></td>
    <td><input type="text" class="t"></td>
  </tr>
</table>

Adam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top