Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

can I put a blank column in a table?

Posted on 2000-02-17
4
Medium Priority
?
157 Views
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
0
Comment
Question by:kcduncan
[X]
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
4 Comments
 
LVL 1

Accepted Solution

by:
jbeaman earned 400 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">
      <TR>
            <!-- Row 1 Column 1 -->
            <TD >
                        R1C1
            </TD>
            <!-- Row 1 Column 2 -->
            <TD >
                        R1C2
            </TD>
            <!-- Row 1 Column 3 -->
            <TD >
                        R1C3
            </TD>
      </TR>
      <TR>
            <!-- Row 2 Column 1 -->
            <TD >
                        R2C1
            </TD>
            <!-- Row 2 Column 2 -->
            <TD >
                  R2C2
            </TD>
            <!-- Row 2 Column 3 -->
            <TD >
                  R2C3
            </TD>
      </TR>
</TABLE>

HTH,
John
0
 
LVL 1

Expert Comment

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

Author Comment

by:kcduncan
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
0
 

Author Comment

by:kcduncan
ID: 2532342
Thanks again.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
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…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

610 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