Featured Photos

Baseball Hall of Fame - 8/23/11

Featured Video

Avery's QuEST Project - It's Healthy!

House Construction

The Completed Home Renovation

Home Renovation - Complete!

Our House Construction Photoblog

RSS Feed

« | Main | »

Using HTML Tables in Blogger Posts

By Brian | August 20, 2006 | Share on Facebook

For the three or four of you who are frequent readers of my blog (as opposed to the random 30 or 40 of you who find yourself here via Google searches), you may have noticed that my previous post was formatted really poorly for a while (there was a huge amount of whitespace above the HTML table in the entry).

A little Google searching led me to this Blogger Help page, which explained that Blogger automatically puts a <br /> commands after each line break in a blog post (you can change that in the configuration screen if you want, but then you have to manually put in HTML <br>’s when you type your posts & who wants that…).

Anyway, I had created my table, as many people do, with code that looked like this:

<tr><td>Blah, Blah, Blah</td></tr>
<tr><td>Blah, Blah, Blah</td></tr>
<tr><td>Blah, Blah, Blah</td></tr>

and so Blogger was adding the <br />’s after each carriage return in that code (which HTML interprets above the table, apparently). The solution, as stated on the help page, is to remove all the carriage returns from the table code, so it looks more like this:

<table><tr><td>Blah, Blah, Blah</td></tr><tr><td>Blah, Blah, Blah</td></tr><tr><td>Blah, Blah, Blah</td></tr></table>

Voila! No whitespace above the table!

I’ve said it before and I’ll say it again: God Bless Google! Both for documenting the problem and the fix so completely on the help page, and then for providing a search engine that made it so easy to find that help page, without going to the Blogger help site & paging through multiple entries…

They’ve certainly got their bases covered, those Google folks…

Topics: Tech Talk | 10 Comments »

10 Responses to “Using HTML Tables in Blogger Posts”

  1. Marc says at January 3rd, 2007 at 10:13 pm :
    Thanks! Indeed, I found this post via Google.

  2. Brian says at January 3rd, 2007 at 10:37 pm :
    Glad to be of service, Marc

  3. Tim says at August 13th, 2007 at 11:03 am :
    As did I. Nicely explained too!

  4. Nexis says at December 23rd, 2007 at 5:04 pm :
    hehe this helped me as well..

  5. MBH says at January 23rd, 2008 at 5:36 am :
    Thanks for the tip. Your result came before Blogger’s!

  6. Brian says at January 23rd, 2008 at 9:28 am :
    Thanks, folks. I’m often amazed by the high page ranks my site gets sometimes.

    Those who Google ‘tables in blogger’ will find this post as the #1 response (out of 554,000), and the Blogger help page to which I referred as #2. Amazing…

    Anyway, I’m glad to help out…

  7. Hilton Meyer says at January 29th, 2008 at 1:43 am :
    Seems like Google is passing a ton of traffic your way. Thanks for the info, my page looks much better.

  8. Evil King Macrocranios says at January 31st, 2008 at 9:32 pm :
    I just wanted to say thanks, too!

  9. Matt says at March 6th, 2008 at 7:56 pm :
    Hey thanks, this problem was driving me crazy.

  10. Matthewlein says at May 9th, 2008 at 10:46 am :
    awesome, that was irritating me too


Comments will be sent to the moderation queue.