How to add cells within column in html table? -


i have trouble finding right way add cells columns: here want do: enter image description here

a fiddle : http://jsfiddle.net/akrb3/

<!doctype html> <html>     <head>         <title></title>         <meta http-equiv="content-type" content="text/html; charset=utf-8">     </head>     <body>         <table style="margin-top: 40px" width="600" height="358" cellspacing="0" cellpadding="2" align="center"  border="1">                         <tr>                             <td align="center">fasfg1                             </td>                             <td  width="42"></td>                              <td align="center">fasfg2                             </td>                         </tr>                     </table>     </body> </html> 

thanx lot!

try this, rowspan.

<!doctype html> <html> <head>     <title></title>     <meta http-equiv="content-type" content="text/html; charset=utf-8"> </head> <body>     <table style="margin-top: 40px" width="600" height="358" cellspacing="0" cellpadding="2" align="center"  border="1">                     <tr>                         <td align="center">fasfg1                         </td>                         <td  width="42" rowspan="3"></td>                          <td align="center" rowspan="3">fasfg2                         </td>                     </tr>                     <tr>                         <td>zroizj</td>                     </tr>                     <tr>                         <td>zroizj</td>                     </tr>                 </table> </body> </html> 

note may hard maintain code if want add more rows in left column in future. may preferable use 2 different tables.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -