• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.
  • The forums have been upgraded with support for dark mode. By default it will follow the setting on your system/browser. You may override it by scrolling to the end of the page and clicking the gears icon.

Need Help With HTML Tables for Forum

OrbitzXT

New Member
Joined
Mar 22, 2007
Messages
1,969 (0.29/day)
Location
New York City
System Name AX-01
Processor Intel Core i5-2500K @3.7 GHz
Motherboard ASRock Z68 Extreme3 Gen3
Cooling Zalman 9700
Memory Kingston HyperX T1 Series 8GB DDR3 1600 MHZ
Video Card(s) GTX 590
Storage Intel X25-M
Display(s) 42" Samsung LED HDTV
Case Antec Twelve Hundred
Audio Device(s) HT | OMEGA STRIKER 7.1
Power Supply Kingwin 1000W
Software Windows 7 64-Bit
Disclaimer: I know virtually nothing about HTML, I just happen to be a gamer that is part of a clan. What I'd like to do on one of our clan's forum posts is to create a table to neatly list Starcraft 2 Character Names, Character Codes, and their Forum Names. So 3 columns and however many rows I need for however many people there are.

The clan's forum has three buttons, 'Insert Table' 'Insert Row' 'Insert Column'. I've tried to toy around with these but not very good results, so as always I turn to this great community here for some help.

I googled some things and thought I could use code similar to this...

http://www.htmlcodetutorial.com/tables/_TD_COLSPAN.html

...then just edit it for my own needs, but that didn't work. The clan's website uses [ and ] instead of < and >, so like a noob I tried to replace the <'s with ['s and >'s with ]'s but no luck. So yeah...any help would be hugely appreciated, thank you so much.
 
Try this:

Code:
<table border="1">
	<tr>
		<td colspan=3 bgcolor="#99CCFF">
		<center>SC2 Stuff</center>
		</td>
	</tr>
	<tr>
		<th>
		Name
		</th>
		<th>
		Character Code
		</th>
		<th>
		Forum Name
		</th>
	</tr>
<!--Copy the between code for each new person added!-->
	<tr>
		<td>
		PVTCaboose
		</td>
		<td>
		226
		</td>
		<td>
		PVTCaboose1337
		</td>
	</tr>
<!--Copy the between code for each new person added!-->
</table>
 
Last edited:
<table><table> defines a table.
<tr></tr> defines a table row. They break up the table vertically. It must appear inside of the table element.
<td></td> defines a table division or cell. They break up the table horizontally. It must appear inside of the tr element.
<th></th> defines a table head division or cell. It's the same as td except it changes the font to make text stand out.

This is a great place to get the basics and quickly try stuff (like colspan, rowspan, and borders):
http://www.w3schools.com/html/html_tables.asp

Oh, you are talking about BBCode? Look at the bottom of the forum and tell us what it says. On TPU, for example, it says "Powered by vBulletin® Version 3.8.6 Copyright ©2000 - 2010, Jelsoft Enterprises Ltd." The important bit there is "vBulletin." Every forum software handles tables differently in terms of BBCode.

vBulletin is like this:
Code:
[plain][table="head"]Header1|Header2|Header3
r1c1|r1c2|r1c3
r2c1|r2c2|r2c3[/table][/plain]

Which looks like this:
[table="head"]Header1|Header2|Header3
r1c1|r1c2|r1c3
r2c1|r2c2|r2c3[/table]

You might also try to look at help guides on the forum for how to use it.
 
Last edited by a moderator:
Back
Top