Skipping rows in HTML Table -


i trying create html tables desired result of

|----html page----------------------| |                                   | |  ---table-------------------------| |  |   t     | text      | text     | |  |   e     |----------------------| |  |   x     | image     | image    | |  |   t     |----------------------| |  |         | text      | text     | |  |         |----------------------- |  |         | image     | image    | |  |---------|----------------------- 

but table isn't skipping rows when tried add <td> before text column. how skip column without adding rows or how make table display on right side of page?

<div>     <table border="1" width="100%">         <tbody>             <tr>                 <td>description</td>             <tr>                 <th>math</th>                 <th>scienc</th>             </tr>             <tr>                 <td>                     <form action="/" method="post">                         <input type="image"src="<%=request.getcontextpath()%>/css/categories/math.jpg">                     </form>                 </td>                 <td>                     <form action="/" method="post">                         <input type="image" src="<%=request.getcontextpath()%>/css/categories/science.jpg">                     </form>                 </td>                 </tr>             <tr>                 <th>physic</th>                 <th>art</th>             </tr>             <tr>                 <td>                     <form action="/" method="post">                         <input type="image"src="<%=request.getcontextpath()%>/css/categories/physic.jpg">                     </form>                 </td>                 <td>                     <form action="/" method="post">                         <input type="image" src  <%=request.getcontextpath()%>/css/categories/art.jpg">                     </form>                 </td>             </tr>             </td>             </tr>             </tbody>         </table>     </div> 

use rowspan property.

<table> <tr>     <td rowspan=4> table data 1</td>     <td> text</td>     <td> image</td> </tr> <tr>     <td> text</td>     <td> image</td> </tr> <tr>     <td > text</td>     <td> image</td> </tr>     <tr>     <td> text</td>     <td > image</td> </tr> 

check jsfiddle


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -