Solved

Content Spacing in Table

Posted on 2000-02-15
6
246 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
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

 

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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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…

728 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