Category Archives: CSS

Control Stretching Textboxes, Beyond 100%

asp.net

In ASP.NET I have created a form inside of a fixed width table, and added css to make my textboxes 100% width. For some reason, a long value assigned on the server side was stretching my textbox way past the the defined width of the table cell.

Initial Code:

Title

Solution:
Wrap the textbox inside a div with relative position, then give the textbox an absolution position.

Title