Alex
Alex

Reputation: 355

Set space between two HTML table columns

I need to set some space between columns 2 and 3 :

<tbody>
<td><input type="text" size="20"</td>
<td><input type="text" size="4"</td>
<td style="width:50px"><input type="text" size="80"</td> <!-- I also tried: width="50"-->
<td><input type="text" size="4"</td> 

I want columns two and three to be far apart. How can I do this ?

Upvotes: 0

Views: 3037

Answers (1)

TSlegaitis
TSlegaitis

Reputation: 1310

Try this it will work. Just add 's with widths.

<td style="width:100"></td>
<td><input type="text" size="4"</td>
<td style="width:100"></td>
<td style="width:50px"><input type="text" size="80"</td>

Upvotes: 1

Related Questions