Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member GameBungie's Avatar
    Join Date
    Aug 2010
    Location
    California
    Posts
    22
    Member #
    23061
    Code:
    <table>
     <tbody>
      <tr>Test</tr>
      <td>123</td>
     </tbody>
    </table>
    What am I doing wrong? I usually have troubles with <table>s. Someone it won't turn out.

  2.  

  3. #2
    Junior Member
    Join Date
    Aug 2010
    Posts
    3
    Member #
    22968
    You need to put your TD elements within a TR. Try this out.

    HTML Code:
    <table>
     <tbody>
      <tr><td>Test</td></tr>
      <tr><td>123</td></tr>
     </tbody>
    </table>
    A TR defines a row, and each TD you place inside of it is a cell.

  4. #3
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    understand what the tags mean -

    The tags have meanings -
    The opening tag <table> and the closing tag </table> starts and ends the table.
    <tr> stands for "table row" and starts and ends horizontal rows.
    <td> stands for "table data". This tag starts and ends each cell in the rows of your table.

    You have to enclose or nest your tags so they form a table, thus the structure:


    <table>
    <tr>
    <td>Cell 1</td>
    <td>Cell 2</td>
    </tr>
    <tr>
    <td>Cell 3</td>
    <td>Cell 4</td>
    </tr>
    </table>

    You can also add header tags <th> (useful if you want to style the headers of the columns differently) and borders, background colours, padding etc.

    There are good tutorials online - check out http://www.2createawebsite.com/build..._tutorial.html

    If you have access to software that creates HTML tables for you (Dreamweaver or something similar), make a couple and study the code to see what I mean.

    Having said all that, can I ask why you want to build tables in the first place? Design nowadays seems to be moving away from table layouts as fast as possible, and relying on CSS for styling.
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  5. #4
    Junior Member GameBungie's Avatar
    Join Date
    Aug 2010
    Location
    California
    Posts
    22
    Member #
    23061
    Oh thanks!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:00 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com