Newbie help regarding Input Text

H

HoustonLucifer

Hi, i am new to HTML. I have written HTML to display a table and within one
of the columns i am displaying a text box. How can i set the width of the
text to be the same as the column width? I tried the size but with that it
is a lot of guess work? Any ideas?

<table>
<tr>
<td>Enter Text<input type=text name="enter"></td>
</tr>
</table>

Thanks for the Help.
 
H

HoustonLucifer

I want to gather some input. It is going to be like the following. The text
for the inputs of day column are going to hold 1, 2 values. I want the text
to be the same width as Day column

Day Time Value
1 19:00 25
2 22:00 50
 
R

rf

HoustonLucifer said:
Hi, i am new to HTML. I have written HTML to display a table and within one
of the columns i am displaying a text box. How can i set the width of the
text to be the same as the column width? I tried the size but with that it
is a lot of guess work? Any ideas?

<head>
....
<style type="text/css">
input {width: 6em;}
</style>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top