How to Post a Table on Blogger
Wednesday, March 11, 2009
Here's a little code I recently found and tweaked to post a table on blogger (which can be seen in my previous blog).
Here's what you do:
- Go to Create tab on Blogger
- Write your post and decide where you would like to place your table
- SAVE your draft, then go to the Html tag
- Cut and paste the following code in the Edit HTML section : (table align="center" border="2" cellpadding="6" cellspacing="2" width="510")(tbody)(tr)(th)Table Header1(/th)(th)Table Header2(/th)(th)Table Header3(/th)(/tr)(tr)(td)Table Data Row1 Column1(/td)(td)Table Data Row1 Column2(/td)(td)Table Data Row 1 Column3(/td)(/tr)(tr)(td)Table Data Row 2 Column1(/td)(td)Table Data Row 2 Column2(/td)(td)Table Data Row 2 Column3(/td)(/tr)(/tbody)(/table)
- Now comes some patience; go back and replace the ( with <
- And replace all the ) with > : If I post it like that it automatically makes it a table!
- Make sure there are no spaces between each line of code. For each space, you will get spaces between your text and the table, leaving you with a large amount of blank space before your table.
This should give you a table with 3 columns and 3 rows like this:
| Table Header1 | Table Header2 | Table Header3 |
|---|---|---|
| Table Data Row1 Column1 | Table Data Row1 Column2 | Table Data Row 1 Column3 |
| Table Data Row 2 Column1 | Table Data Row 2 Column2 | Table Data Row 2 Column3 |
Good luck!



0 comments:
Post a Comment