Solved

Content Spacing in Table

Posted on 2000-02-15
6
218 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

912 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

21 Experts available now in Live!

Get 1:1 Help Now