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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sizing form element

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
I have a textbox that I want to fit perfectly in a cell, but it also has text... If I size it width:100%, it takes 100% size of the cell - what I want is for it to be sized from where it is (after the text) over to the right side of the textbox... make sense? How do I do that?

[conehead]
 
You'd need to know a few things:
[ol]
[li]Size of the cell[/li]
[li]The percentage of the text for that cell[/li]
[li]what kind of space you'd like to have between the text and the beginning of the text box[/li]
[/ol]

Once you have all that, just create a style for the form that gives the remaining percentage width for the size of your text box.

This could also be done using ems.

- George
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top