1

I have problem to create table like image below: enter image description here Does anyone know how to create table above using html and css? I Use that table to create content like this below: enter image description here Please guide me and thanks in advance.

5
  • 3
    In order to avoid a ton of rowspans why don't you just create 2 simple tables side by side? Commented Jul 24, 2012 at 9:59
  • 3
    Is this for displaying tabular data, or is this a page layout? Commented Jul 24, 2012 at 10:21
  • 2
    You may be interested in this: stackoverflow.com/questions/9205790/… Commented Jul 24, 2012 at 10:55
  • 1
    For other complex table layouts, this site has a ton of live examples with the markup required. Commented Jul 25, 2012 at 3:28
  • great references but can't solve my problem Commented Jul 25, 2012 at 5:12

2 Answers 2

3

rowspan=2 will let you merge cells vertically.

E.g. here is the start of your table:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN"><HTML>
<BODY>
<table border>
  <tr>
    <td rowspan=2>row 1, column 1</td>
    <td>row 1, column 2</td>
    <td>row 1, column 3</td>
  </tr>
  <tr>
    <!--td row 2, column 1, covered by row above-->
    <td rowspan=2>row 2, column 2</td>
    <td>row 2, column 3</td>
  </tr>
  <tr>
    <td>row 3, column 1</td>
    <!--td row 3, column 2, covered by row above-->
    <td>row 3, column 3</td>
  </tr>
</table>
</BODY>
</HTML>

To generate tables like that manually gets messy pretty quickly. You'd be better off with a good layout tool.

Sign up to request clarification or add additional context in comments.

Comments

1

Make a table of 6 rows by 3 columns and make some of the borders invisible, this would be the easiest. I think you can figure the rest of it out by yourself.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.