can I put a blank column in a table?

Posted on 2000-02-17
Last Modified: 2010-04-09
I want to use a table to display:

X: xxx             Y:yyy
Z: zzz

and I can't figure out how to get some white space between X & Y.  Can this be done?  

thanks - kay
Question by:kcduncan
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

jbeaman earned 100 total points
ID: 2532221
The following table uses the "width" setting to force the table to be 95% of the viewing resolution width regardless of how many columns you have.  This allows for extra white space in each cell.  You can also increase the white space by changing the value of the "cellpadding", which creates an area of space between the contents of each cell and the cell border.  You can cut and paste this code into an empty html doc and experiment with the settings.

<TABLE  width="95%" border="3" cellspacing="3" cellpadding="10">
            <!-- Row 1 Column 1 -->
            <TD >
            <!-- Row 1 Column 2 -->
            <TD >
            <!-- Row 1 Column 3 -->
            <TD >
            <!-- Row 2 Column 1 -->
            <TD >
            <!-- Row 2 Column 2 -->
            <TD >
            <!-- Row 2 Column 3 -->
            <TD >


Expert Comment

ID: 2532278
If you want to have a blank column, try this <td>&nbsp;</td>. It will insert a space in the table cell

Author Comment

ID: 2532339
Thanks deepchanda - I finally wrote that down because I can never remember it!
John, I think your suggestion of width on the table tag will be most useful to me.  I still need to experiment with it, but I like it much better than what I had - Thanks.   k

Author Comment

ID: 2532342
Thanks again.

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question