|
||||||||
| Notices |
| Announcements: Read First! Important announcements and notices posted here. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Ok, I see there have been a couple of instances where a table would be handy to have on a post.
Here's the basics of how to do it. A tag has two parts: <table><tr><td> Code:
<example> the opening tag, which goes before the part of the code/content that it effects</td></tr><tr><td> Code:
</example> and the closing tag, which goes directly after the part of the code/content it effects</td></tr></table><table border=1><tr><td> Code:
<table> </table> this is the first HTML tag you add. This tells the the browser that what is in between this tag is the contents and structure of the entire table.</td></tr><tr><td> Code:
<tr> </tr> This is the Table Row tag and whatever is in between this tag is in ONE row.</td></tr><tr><td> Code:
<td> </td> This is the Table Data tag (also called the table column tag) and inside this tag is where you stick the content. NOTE: This tag has to be in between the Table Row tags</td></tr><tr><td> Code:
<tr><td>hello</td><td>test</td></tr> You can have as many Table Data tags inside a Table Row tag as you need.</td></tr><tr><td> Code:
<tr>
<td>hello</td>
<td>test</td>
</tr>
<tr>
<td colspan=2>longer</td>
</tr>
But all the Table Rows have to have the same # of colums (td tags) or the difference needs to be accounted for with the colspan=# modifier. It goes inside the td tag, right after the letters "td".</td></tr><tr><td> Code:
<table border=1>
<tr>
<td>hello</td>
<td>test</td>
</tr>
</table>
s border is zero. This table has a border of one.</td></tr> <tr><td> Code:
<table><tr><td>hello</td><td>test</td></tr></table> Code:
<tr>
<td>hello</td>
<td>test</td>
</tr>
<tr align=center>
<td colspan=2>longer</td>
</tr>
The align=center modifier is great for lining up columns of numeric data. It goes inside the tr or td tag, right after the letters "tr"or "td".</td></tr></table> There are a ZILLION guides to HTML and tables on the internet. If you start using them and find that the forums aren't allowing you to use a tag you want to use, let me know by senting me a private message. Hope to see you taking advantage of tables soon! -dvsDave |
| Sponsored Links |
|
||||
|
<table width="326" height="130" border="1" cellpadding="0" cellspacing="0">
<tr><td align="center" width="106" rowspan="3" bgcolor="#FF0000" >T H A N K S</td><td height="43" colspan="2" align="center" bgcolor="#FFFF00">Dave</td> </tr><tr><td width="106" height="42" align="center" bgcolor="#00FF00">Works</td> <td align="center" width="106" bgcolor="#0000FF">Well</td></tr><tr><td colspan="2" bgcolor="#66FFFF">doesn't like html within the table though, had to use BBCode to format text</td></tr></table>
__________________
You are not the messiah wolf, you're just a very naughty boy. |
![]() |
| Tags |
| forums, html, make, tables |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| hobnobbing it with the people who made this site possible... | dvsDave | News | 33 | September 16th, 2003 02:02 AM |