Search This Blog

Sunday, March 19, 2006

How to do a quick and dirty table

Here is a way to do a quick and dirty table if you don't want to use the <table> tag. If you try to enter a table like this in Blogger:

Item Code Price
Apple 0123 1.29
Orange 1728 1.35
Pear 2783 1.68

browsers will count extra spaces as one space and display the table as follows:

Item Code Price
Apple 0123 1.29
Orange 1728 1.35
Pear 2783 1.68

To display the table as formatted with the spaces, you can use the Preformatted tag <pre> insteaded. What you have to do is to add the tags <pre> and </pre> before and after the table, like this:

<pre>
Item Code Price
Apple 0123 1.29
Orange 1728 1.35
Pear 2783 1.68
</pre>


The Weblog Handbook: Practical Advice on Creating and Maintaining Your Blog

Essential Blogging : Selecting and Using Weblog Tools

4 comments:

  1. Yes, I've used that in listing books or birds (taken from data bases) in my blog.

    ReplyDelete
  2. Could you help me get rid of all the extra stuff at the bottom of my February archive. They are double posts without the margins. It's showing my email and everything. After the blogger meltdown, this is what I was left with. I can't seem to find it in the html in the template or anything. I republished some of the other posts to try and get rid of it, but I just can't figure it out. I hope you can help me.

    ReplyDelete
  3. Hi, thanks for this wonderful site.

    You have answered a question that I've asked several times.

    I will now go back and edit a couple of my posts where I wanted to add a table, but didn't because I ran into just the problem you described.

    Thanks again for the answer.

    Irv Arons
    www.irvaronsjournal.blogspot.com

    ReplyDelete
  4. Thanks!

    I remember the frustration when I needed it once, now I'll use it the next time I need a table ;-D

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...

Find topics by using the Google custom search box above which can search multiple blogs, or the SEARCH BLOG in the left corner of navbar. You can also find topics in the Label List and Categrories in the right sidebar.

For more information and special deals related to any of the issues on this page, place your cursor over the double-underlined links. All information supplied by Kontera.com.

Disclaimer: This blog has no relation with Wiley Publications