Results 1 to 3 of 3

Thread: Size does matter for this thread ...

  1. #1

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Talking

    I have a table in which I've created the layout with percentages - i.e. in my HTML page, I've told it "the first column should take up 10% of whatever the screen size is..."
    Code:
    <Input type="text" name = "TxtEvent1" size=col width>
    Is the wrong code I am using. I need my text boxes width to match that of the column.

    Can anyone help me please

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    There is no such thing as 'col width'.

    What you will need to do, is set the width of the TD tag with whatever % you need, then set the style attribute on the INPUT tag:

    Code:
    <TABLE border=1 width=100%>
    	<TR>
    		<TD width=10%><Input type="text" name = "TxtEvent1" style="width: 100%">
    		</TD>
    		<TD width=10%><Input type="text" name = "TxtEvent2" style="width: 100%">
    		</TD>
    		<TD width=10%><Input type="text" name = "TxtEvent3" style="width: 100%">
    		</TD>
    		<TD width=10%><Input type="text" name = "TxtEvent4" style="width: 100%">
    		</TD>
    		<TD width=10%><Input type="text" name = "TxtEvent5" style="width: 100%">
    		</TD>
    		<TD width=50%><Input type="text" name = "TxtEvent6" style="width: 100%">
    		</TD>
    	</TR>
    </TABLE>
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  3. #3

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Brilliant, Monte, you're a star!

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width