Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Empty cells within tables

1 view
Skip to first unread message

Huguette Dupont

unread,
Nov 20, 1996, 3:00:00 AM11/20/96
to

Hi!

There is the problem :

I'm using a table to show information selected in a database. The
table format is always the same,whatever the values selected.

When a certain cell has no value, or worst, many consecutive cells, the
browser doesn't draw the lines between cells (only those without
values). It doesn't looks great!!!

I'd like to know how to solve this problem.

Thanks!
Hugie :)

Martin van den Berg

unread,
Nov 20, 1996, 3:00:00 AM11/20/96
to


If I understand your problem correctly, then the code &nbsp (a hard
coded space) will do the trick.

HTH,

Martin
______________________________________________________________________
Martin van den Berg Internet services
Quodata
Best, The Netherlands mv...@IAEhv.nl http://IAEhv.nl/users/mvdb


Ken Bigelow

unread,
Nov 20, 1996, 3:00:00 AM11/20/96
to

Huguette Dupont wrote:
>
> Hi!
>
> There is the problem :
>
> I'm using a table to show information selected in a database. The
> table format is always the same,whatever the values selected.
>
> When a certain cell has no value, or worst, many consecutive cells, the
> browser doesn't draw the lines between cells (only those without
> values). It doesn't looks great!!!
>
> I'd like to know how to solve this problem.
>
> Thanks!

Try putting just a space in the cell: <td> </td>.

If that doesn't work the way you want, use <td>&#160;</td> to put a
non-breaking space in there. That gets handled as a valid character that
just doesn't happen to display anything.
--
Ken

Are you interested in |
byte-sized education | http://www.play-hookey.com
over the Internet? |

TE LeVere

unread,
Nov 20, 1996, 3:00:00 AM11/20/96
to

In article <56uvv5$l...@bmtlh10.bnr.ca>, Huguette Dupont <"stud6z5"@nortel.ca (bnr400)> wrote:
>Hi!
>
>There is the problem :
>
> I'm using a table to show information selected in a database. The
>table format is always the same,whatever the values selected.
>
> When a certain cell has no value, or worst, many consecutive cells, the
>browser doesn't draw the lines between cells (only those without
>values). It doesn't looks great!!!
>
> I'd like to know how to solve this problem.
>
>Thanks!
>Hugie :)

Just put something in the cell that dosn't print, like say <BR>

Hope this helps
Tom

Al

unread,
Nov 22, 1996, 3:00:00 AM11/22/96
to

Huguette Dupont wrote:
>
> Hi!
>
> There is the problem :
>
> I'm using a table to show information selected in a database. The
> table format is always the same,whatever the values selected.
>
> When a certain cell has no value, or worst, many consecutive cells, the
> browser doesn't draw the lines between cells (only those without
> values). It doesn't looks great!!!
>
> I'd like to know how to solve this problem.
>
> Thanks!
> Hugie :)
-------------------------------------
Easy! Place a dot . at the beginning of every cell in the same color as
the background which renders a near invisible character. All cells will
draw. You can also assign minmum cell sizes to each cell so they draw,
but that is browser iffy as to whether they will draw everytime. The dot
guarantees a draw but mucks up spacing a tad. Of course this assumes
that table size is not important.

If it is then;
You can do it the hard way by writing a function fill.space() and use an
IF to find the empties and assign a zero or - character value on the
write.
Me likes the dots! Quicker,less headaches,No debugs, and browser /
platform independent!

Al
Webm...@ConchRepublic.com

Tony Olekshy

unread,
Nov 23, 1996, 3:00:00 AM11/23/96
to

I find the easiest way to get an otherwise empty table cell's frame
borders to indent is to put &nbsp; in the cell.

Yours, &c, Tony Olekshy

Matthias Malsy

unread,
Dec 10, 1996, 3:00:00 AM12/10/96
to cap...@sefl.satelnet.org

There is an more easy way ...
Just use the &nbsp; command to do that.
That's an none braking space

--
------------ live and learn, die and forget, except you are an AI
-------------
- Email: ma...@globit.com - WWW: http://www.globit.com/~malsy -

Percy Nikorawalla

unread,
Dec 10, 1996, 3:00:00 AM12/10/96
to

Or just place a <BR> in the table cell.
--
============================================================
Percy Nikorawalla Merrill Lynch
Interactive Sales http://www.ml.com 500 College Rd East
System Technology Princeton, NJ 08540
============================================================

Simon Lee

unread,
Dec 10, 1996, 3:00:00 AM12/10/96
to

On Tue, 10 Dec 1996 14:45:41 +0100, Matthias Malsy <ma...@globit.com>
wrote:

>There is an more easy way ...
>Just use the &nbsp; command to do that.
>That's an none braking space
>

I use &#160 is it the same?
/------------------------|----------------------------\
|Simon Lee | simo...@super.zippo.com|
|Oxford Magnet Technology| simo...@dial.pipex.com|
|Wharf Road |phone +44 1865 880880 ext239|
|Eynsham |fax +44 1865 880872 |
|Oxford | For the worlds best selling |
|United Kingdom | Medical Imaging Magnets! |
\-----------------------------------------------------/

Anthony K. Chu

unread,
Dec 11, 1996, 3:00:00 AM12/11/96
to

On Tue, 10 Dec 1996 22:40:22 GMT, simo...@super.zippo.com (Simon
Lee) wrote:

>On Tue, 10 Dec 1996 14:45:41 +0100, Matthias Malsy <ma...@globit.com>
>wrote:
>
>>There is an more easy way ...
>>Just use the &nbsp; command to do that.
>>That's an none braking space
>>
>
>I use &#160 is it the same?

Exactly the same. &#160 is just the ISO equivalent to nbsp. I think
anything that understands <TABLE> should also understand both methods
of saying non-breaking space.


Anthony K. Chu


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Second Year Computer Science Major http://www.webhaven.com/anthony/
University of British Columbia, Canada <anth...@unixg.ubc.ca>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Ron Levenberg

unread,
Dec 15, 1996, 3:00:00 AM12/15/96
to

You can also put "<br>" in the cell - that does the trick with 2 fewer
characters.

Ron Levenberg - r...@cc.bellcore.com


On Tue, 10 Dec 1996 14:45:41 +0100, Matthias Malsy <ma...@globit.com>
wrote:

>There is an more easy way ...
>Just use the &nbsp; command to do that.
>That's an none braking space

>> > I'm using a table to show information selected in a database. The


>> > table format is always the same,whatever the values selected.
>> > When a certain cell has no value, or worst, many consecutive cells, the
>> > browser doesn't draw the lines between cells (only those without
>> > values).

---
Ron Levenberg - r...@cc.bellcore.com

Brian Jonnes

unread,
Dec 23, 1996, 3:00:00 AM12/23/96
to

In <32ADCD...@ml.com>, Percy Nikorawalla <pnik...@ml.com> wrote:

>Or just place a <BR> in the table cell.

No. &nbsp; will be better, as the browser will not want to add an extra
line.

Cheers,

Brian

>--
>============================================================
>Percy Nikorawalla Merrill Lynch
>Interactive Sales http://www.ml.com 500 College Rd East
>System Technology Princeton, NJ 08540
>============================================================

>Matthias Malsy wrote:
>>
>> There is an more easy way ...
>> Just use the &nbsp; command to do that.
>> That's an none braking space
>>

>> Al wrote:
>> >
>> > Huguette Dupont wrote:
>> > >
>> > > Hi!
>> > >
>> > > There is the problem :
>> > >

>> > > I'm using a table to show information selected in a database. The
>> > > table format is always the same,whatever the values selected.
>> > >
>> > > When a certain cell has no value, or worst, many consecutive cells, the
>> > > browser doesn't draw the lines between cells (only those without

0 new messages