Solved

Content Spacing in Table

Posted on 2000-02-15
6
209 Views
Last Modified: 2010-04-09
Hi,
I've a table....I've 2 cells (rows/columns)inside my table...
I'm inserting  1 paragraph at runtime to one of my cell....Its getting displayed in one line....
I tried using pre tags...<PRE> tags are working fine for line break and spacing....But,when the content is a single paragraph,it is taking/considering in one line....
I tried wrap/nowrap in cell properties...But,no use...Any ideas/suggestions will be greatly useful for me...Thanks in advance...
0
Comment
Question by:tmmet
6 Comments
 
LVL 16

Expert Comment

by:maneshr
ID: 2524816
use this

<TABLE BORDER=1 CELLPADDING=0 CELLSPACING=0 WIDTH=500>

try the foll html code and keep chaning the width to diff values to see the difference

===============test.html

<HTML>
<HEAD>
<TITLE>dinesite.com dallas, tx</TITLE>
</HEAD>

<TABLE BORDER=1 CELLPADDING=0 CELLSPACING=0 WIDTH=500>
<TD>1</TD><TD>Hi,
                   I've a table....I've 2 cells (rows/columns)inside my table...
                   I'm inserting  1 paragraph at runtime to one of my cell....Its getting displayed in one line....
                   I tried using pre tags... tags are working fine for line break and spacing....But,when the content is
                   a single paragraph,it is taking/considering in one line....
                   I tried wrap/nowrap in cell properties...But,no use...Any ideas/suggestions will be greatly useful for
                   me...Thanks in advance...
</TD>
<TR>
<TD>2</TD><TD></TD>
<TR>
<TD>3</TD><TD></TD>
<TR>
</TABLE>
0
 

Author Comment

by:tmmet
ID: 2524897
Hi,
Thanks for your reply...But,still I'm struggling with my problem...
0
 
LVL 16

Expert Comment

by:maneshr
ID: 2524970
pl. explain the nature of your problem..
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Accepted Solution

by:
SuperCool earned 0 total points
ID: 2525152
If your problem is that one cell is larger than the other you can also specify the width of the cell.. eg. <td width="250"></td>

for example...

<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
      <td width="250">this is the same size</td>
      <td width="250">as this</td>
</tr>
</table>

hope that answers your question
0
 

Author Comment

by:tmmet
ID: 2527979
Hi,
Ok....I'll explain in detail...
I've a text area....I'm typing characters continuously without pressing enter....Then,I'm getting the textarea's contents and displaying in a table's cell....
I'm using <pre> tag inside my table to preserve the blank line(if any)....
It is getting displayed in one line(as I've typed characters in my textarea without pressing enter)....Is there any method/style that can be set in <pre> tag/<TR>tag that each line should take 15 chracters (say) and the 16th character should goto the next line...
Or,is there any way that I can set in text area the same?.That is,each line should take 15 characters and entering the 16th character is equivalent to pressing enter and entering that character...
Any ideas/suggestions will be greatly helpful forme....
0
 

Expert Comment

by:kcduncan
ID: 2532113
I'm having a similar problem but my cell is displaying too narrow rather than too wide.  I haven't figured mine out yet, but you might want to check the response given to me by ericpete.
http://www.experts-exchange.com/jsp/qShow.jsp?ta=html&qid=10262898

That should be the right link - if not, look for the title 'width attribute in table'
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now