Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > problems in rendering cell too much text

Reply
Thread Tools

problems in rendering cell too much text

 
 
anurag
Guest
Posts: n/a
 
      12-28-2006
Hi all,
i need to introduce a functionality in HTML tables that will imitate
auto-indentation,ie, with increasing rows, the text will be rendered at
a further offset than the previous one.
For this, i'm using DIV tags and setting style = "margin-left: X"
where X increases with each row.
The problem is that if a cell contains huge text, some of the text gets
clipped and the whole text is not rendered.
Plz let me know wht can b done so that the text is rendered completely.

Following is the HTML source i'm using:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"><html><head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<title>/New Project/New Folder/g</title></head>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#EE0000" ALINK="#808080"
VLINK="#808080">
<!-- 28 December 2006 a -->
<table border><tr bgcolor="#FFC0CB">
<th width=50 align=Right>ID</th>
<th width=381 align=Left>...</th>
<th nowrap> Links </th>
</tr>
<tr><td valign="top">27</td>
<td valign="top"><DIV style="margin-left: 0px"><a name="X27">
</a><b>1 dog</b><br></DIV></td>
<td nowrap align="left"><small>...</small></td>
</tr>
<tr><td valign="top">28</td>
<td valign="top"><DIV style="margin-left: 42px"><a name="X28">
</a><b>1.1 horse</b><br>rat<br>
</DIV></td>
<td nowrap align="left"><small>...</small></td>
</tr>
<tr><td valign="top">37</td>
<td valign="top"><DIV style="margin-left: 70px"><a name="X37">
</a><b>1.1.1 cow</b><br>text:cow<br>
</DIV></td>
<td nowrap align="left"><small>...</small></td>
</tr>
<tr><td valign="top">38</td>
<td valign="top"><DIV style="margin-left: 89px"><a name="X38">
</a><b>1.1.1.1 buffalo</b><br>hi there, hello world , lion dear<br>
</DIV></td>
<td nowrap align="left"><a href =
"_New_Project_New_Folder_g_1.htm#X42"> k<br> (42)</a>(OUT)<br>
<small>...</small></td>
</tr>
<tr><td valign="top">39</td>
<td valign="top"><DIV style="margin-left: 101px"><a name="X39">
</a><b>1.1.1.1.1 elephant</b><br></DIV></td>
<td nowrap align="left"><small>...</small></td>
</tr>
<tr><td valign="top">40</td>
<td valign="top"><DIV style="margin-left: 110px"><a name="X40">
</a><b>1.1.1.1.1.1 lion</b><br></DIV></td>
<td nowrap align="left"><small>...</small></td>
</tr>
<tr><td valign="top">41</td>
<td valign="top"><DIV style="margin-left: 115px"><a name="X41">
</a><b>1.1.1.1.1.1.1 goat</b><br></DIV></td>
<td nowrap align="left"><small>...</small></td>
</tr>
<tr><td valign="top">42</td>
<td valign="top"><DIV style="margin-left: 119px"><a name="X42">
</a><b>1.1.1.1.1.1.1.1
camel</b><br>catcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcat catcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatca tcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatcatc atcatcatdog<br>
</DIV></td>
<td nowrap align="left"><small>...</small></td>
</tr>
<tr><td valign="top">44</td>
<td valign="top"><DIV style="margin-left: 122px"><a name="X44">
</a>gdhhh<br>
</DIV></td>
<td nowrap align="left"><small>...</small></td>
</tr>
<tr><td valign="top">43</td>
<td valign="top"><DIV style="margin-left: 122px"><a name="X43">
</a><b>1.1.1.1.1.1.1.1.1 cat</b><br>bat<br>
</DIV></td>
<td nowrap align="left"><small>...</small></td>
</tr>
<tr><td valign="top">45</td>
<td valign="top"><DIV style="margin-left: 123px"><a name="X45">
</a><b>1.1.1.1.1.1.1.1.1.1
rabitRABITrabitRABITrabitRABITrabitRABITrabitRABIT rabitRABITrabitRABIT</b><br>djfvfuj<br>
</DIV></td>
<td nowrap align="left"><small>...</small></td>
</tr>
<tr><td valign="top">77</td>
<td valign="top"><DIV style="margin-left: 124px"><a name="X77">
</a><img src="OLE000004d823Attribute-Object_Text-0" height=15 width=304
alt="OLE Object"> <br>
</DIV></td>
<td nowrap align="left"><small>...</small></td>
</tr>
<tr><td valign="top">47</td>
<td valign="top"><DIV style="margin-left: 124px"><a name="X47">
</a>goat<br>
</DIV></td>
<td nowrap align="left"><small>...</small></td>
</tr>
<tr><td valign="top">58</td>
<td valign="top"><a name="X56">
</a><table border = 1 cellPadding = 0 cellSpacing = 0>
<tr>
<td colSpan=150 valign="top"><a name="X58">
</a>a<br>
</td>
<td colSpan=150 valign="top"><a name="X59">
</a>a<br>
</td>
</tr>
<tr>
<td colSpan=150 valign="top"><a name="X61">
</a>a<br>
</td>
<td colSpan=150 valign="top"><a name="X62">
</a>a<br>
</td>
</tr>
</table>
</td>
<td nowrap align="left"><small>...</small></td>
</tr>
<tr><td valign="top">65</td>
<td valign="top"><a name="X63">
</a><table border = 1 cellPadding = 0 cellSpacing = 0>
<tr>
<td colSpan=150 valign="top"><a name="X65">
</a><H13> hi there</H13>
this is object text.<br>
</td>
<td colSpan=150 valign="top"><a name="X66">
</a>&nbsp</td>
</tr>
<tr>
<td colSpan=150 valign="top"><a name="X68">
</a>&nbsp</td>
<td colSpan=150 valign="top"><a name="X69">
</a>&nbsp</td>
</tr>
</table>
</td>
<td nowrap align="left"><small>...</small></td>
</tr>
<tr><td valign="top">72</td>
<td valign="top"><a name="X70">
</a><table border = 1 cellPadding = 0 cellSpacing = 0>
<tr>
<td colSpan=150 valign="top"><a name="X72">
</a>&nbsp</td>
<td colSpan=150 valign="top"><a name="X73">
</a>&nbsp</td>
</tr>
<tr>
<td colSpan=150 valign="top"><a name="X75">
</a>&nbsp</td>
<td colSpan=150 valign="top"><a name="X76">
</a>&nbsp</td>
</tr>
</table>
</td>
<td nowrap align="left"><small>...</small></td>
</tr>
</table>
<DIV align="center"><p><a href =
"http://www.telelogic.com/doors/">Produced by DOORS 8.2.0.0</a></DIV>
</body>
</html>

 
Reply With Quote
 
 
 
 
Andy Dingley
Guest
Posts: n/a
 
      12-28-2006

anurag wrote:

> i need to introduce a functionality in HTML tables that will imitate
> auto-indentation,ie, with increasing rows, the text will be rendered at
> a further offset than the previous one.


Use CSS and stick a "level-1" / "level-2" etc. class on the <tr>


> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">


Use 4.01 Strict instead. You'll have an easier time getting the
positioning consistent between browsers.

 
Reply With Quote
 
 
 
 
Bergamot
Guest
Posts: n/a
 
      12-28-2006
anurag wrote:
>
> i need to introduce a functionality in HTML tables that will imitate
> auto-indentation,ie, with increasing rows, the text will be rendered at
> a further offset than the previous one.
> [snip code]
> <b>1.1 horse</b>


Your code isn't very legible, but this looks suspiciously like a
numbered list to me, not tabular data, though it is difficult to tell.
You may have decided on a solution before sufficiently defining the problem.

Post a URL instead. Then maybe someone can give you a better way to do
whatever it is you are really trying to accomplish.

--
Berg
 
Reply With Quote
 
Bergamot
Guest
Posts: n/a
 
      12-29-2006
anurag wrote:
>
> i need to introduce a functionality in HTML tables


Hmmm... you emailed me privately with a base-64 encoded attachment.
That sort of thing is reserved for spammers and other slugs trying to
infect my PC with various evil things. Needless to say, your message and
its attachment went directly into the trash bin, never to be opened.

Post a URL so everyone can join in the fun.

--
Berg
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Too Much Talent + Too Much Demand = ? Lawrence D'Oliveiro NZ Computing 5 02-18-2011 10:14 PM
Simulation questions...how much is too much? =?Utf-8?B?VGlwcHk=?= Microsoft Certification 0 04-16-2005 04:47 AM
CPU Heat--how much is too much? PowerPost2000 Computer Support 4 12-22-2003 12:40 AM
paranoia... much too much adcl Computer Support 14 11-08-2003 05:18 PM
Problems with imaging (too slow or too much RAM) SB Java 0 08-05-2003 11:06 AM



Advertisments