[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 257
  • Last Modified:

Content Spacing in Table

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
tmmet
Asked:
tmmet
1 Solution
 
maneshrCommented:
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
 
tmmetAuthor Commented:
Hi,
Thanks for your reply...But,still I'm struggling with my problem...
0
 
maneshrCommented:
pl. explain the nature of your problem..
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
SuperCoolCommented:
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
 
tmmetAuthor Commented:
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
 
kcduncanCommented:
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

Tackle projects and never again get stuck behind a technical roadblock.
Join Now