Link to home
Start Free TrialLog in
Avatar of Sthokala
SthokalaFlag for United States of America

asked on

Colspan in table

Hi ,
  I created a table with 4 columns.. In one row I want to create a textarea and wanted to to span for 4 columns. Please let me know how can I do it.

I tried like this..but its not working
<tr >
           <td colspan="3">  <textarea  rows="6">Clinical Notes</textarea> </td>
   
    </tr>
Avatar of cmalakar
cmalakar
Flag of India image

<table>
  <tr><td>1stColumn</td><td>2nd Column</td><td>3rd Column</td><td>4thColumn</td></tr>
  <tr><td colspan="4"> <textarea rows="6"></textarea></td></tr>
</table>
Probably add a border, you will see that td occupying 4 columns
<table border="1">
  <tr><td>1stColumn</td><td>2nd Column</td><td>3rd Column</td><td>4thColumn</td></tr>
  <tr><td colspan="4"> <textarea rows="6" width="100%"></textarea></td></tr>
</table>

Open in new window

Avatar of Sthokala

ASKER

Hi cmalakar,
  I tried the above..the result is attached in the pic. I am using IE. Please let me know how can I do this.

Thank you
colspan.PNG
ASKER CERTIFIED SOLUTION
Avatar of Gurvinder Pal Singh
Gurvinder Pal Singh
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial