100 Web Space
http://forum.100webspace.com/

please help me with tables
http://forum.100webspace.com/viewtopic.php?f=4&t=4685
Page 1 of 1

Author:  jimotman [ Sat Aug 05, 2006 5:38 pm ]
Post subject:  please help me with tables

hi.. please help me with this table I want to make.. this is the code:

Code:
<html><head></head><body>
<table border=1 width=25% bordercolor=black>
  <tr> 
    <td rowspan=2>A<br>A<br>A<br>A<br>A<br>A<br>A<br>A<br></td>
    <td rowspan=2>B</td>
    <td valign=top>
      <table width=100% border=1 valign=top bordercolor=red>
        <tr>
          <td valign=top>1</td>
          <td valign=top>2</td>
        </tr>
        <tr>
          <td valign=top colspan=2>3</td>
        </tr>
      </table>
    </td>
    <td rowspan=2>D</td>
    <td rowspan=2>E</td>
  </tr>
  <tr>
    <td valign=top>C</td>
  </tr>
</table>
</body>
</html>


and this is the result of the above code:

Image

how can I make column "C" to be right below column "3"?

Thank you very much..

Author:  =cipher= [ Mon Aug 07, 2006 3:34 pm ]
Post subject: 

Greetings,

Here is your current code:
Code:
<html><head></head><body>
<table border=1 width=25% bordercolor=black>
  <tr> 
    <td rowspan=2>A<br>A<br>A<br>A<br>A<br>A<br>A<br>A<br></td>
    <td rowspan=2>B</td>
    <td valign=top>
      <table width=100% border=1 valign=top bordercolor=red>
        <tr>
          <td valign=top>1</td>
          <td valign=top>2</td>
        </tr>
        <tr>
          <td valign=top colspan=2>3</td>
        </tr>
      </table>
    </td>
    <td rowspan=2>D</td>
    <td rowspan=2>E</td>
  </tr>
  <tr>
    <td valign=top>C</td>
  </tr>
</table>
</body>
</html>


Here is the adapted code:
Code:
<html><head></head><body>
<table border=1 width=25% bordercolor=black>
  <tr> 
    <td rowspan=2>A<br>A<br>A<br>A<br>A<br>A<br>A<br>A<br></td>
    <td rowspan=2>B</td>
    <td valign=top>
      <table width=100% border=1 valign=top bordercolor=red>
        <tr>
          <td valign=top>1</td>
          <td valign=top>2</td>
        </tr>
        <tr>
          <td valign=top colspan=2>3</td>
        </tr>
        <tr>
          <td valign="top" colspan="2">C</td>
        </tr>
      </table>
    </td>
    <td rowspan=2>D</td>
    <td rowspan=2>E</td>
  </tr> 
</table>
</body>
</html>


PS: Your code is not 100% valid. :wink:

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/