943,102 Members | Top Members by Rank

Ad:
Feb 2nd, 2010
0

Tables Sizes in this issue

Expand Post »
hi
how can i make one table like in this image
http://i50.tinypic.com/xbemg7.jpg

i tried this code but it doesn't work , they fitting to each other

HTML and CSS Syntax (Toggle Plain Text)
  1. <table border="1">
  2. <tr>
  3. <td width="300">stuff-1</td>
  4. <td width="700">stuff-2</td>
  5. </tr>
  6. <tr>
  7. <td width="700">stuff-3</td>
  8. <td width="300">stuff-4</td>
  9. </tr>
  10. </table>
Last edited by fuchsia555; Feb 2nd, 2010 at 3:28 pm.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
fuchsia555 is offline Offline
30 posts
since Dec 2009
Feb 3rd, 2010
0
Re: Tables Sizes in this issue
Hi,

Its a simple case of using colspans. Here is a working example

HTML Syntax (Toggle Plain Text)
  1. <table width="1000px" border="0" height="300px">
  2. <tr style="height: 1px;">
  3. <td>
  4. </td>
  5. <td>
  6. </td>
  7. <td>
  8. </td>
  9. </tr>
  10. <tr>
  11. <td width="300" bgcolor="red">
  12. </td>
  13. <td colspan="2" width="700" bgcolor="blue">
  14. </td>
  15. </tr>
  16. <tr>
  17. <td colspan="2" width="700" bgcolor="blue">
  18. </td>
  19. <td width="300" bgcolor="red">
  20. </td>
  21. </tr>
  22. </table>
Reputation Points: 46
Solved Threads: 48
Posting Pro in Training
macneato is offline Offline
410 posts
since Jun 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: no scrollbar
Next Thread in HTML and CSS Forum Timeline: Load Movie





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC