|
-
Including a Text Box in a Table's Cell
When I build tables in HTML, I always prefre to use relative (percentage)
widths, for the whole tabel and for its cells. One problem I faced - using
the IE - is that when I build a table this way and include a text box within
a cell, such that the width of the text box is set to 100% so that it takes
the whole cell's width, when I do so, that cell gets wider if not the whole
content - specified at design time - of the text box can be displayed at
once. For clarification, here is an example:
<TABLE BORDER="1" WIDTH="50%" CELLSPACING="0">
<TR>
<TH WIDTH="30%">Type</TH>
<TH WIDTH="70%">Comment</TH>
</TR>
<TR>
<TD>Whatever</TD>
<TD><INPUT TYPE="TEXT" VALUE="Try putting a short and a long string
here to observe the problem" STYLE="width: 100%"></TD>
</TR>
</TABLE>
Any help (soultions or alternatives) is highly appreciable.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks