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

x
?
Solved

Content Spacing in Table

Posted on 2000-02-15
6
Medium Priority
?
252 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
[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
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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

Technology Partners: 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!

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

636 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