Issue With Tables

M

Martix

I'm having a small issue with tables.

I'm using asp to display database date into a table. The problem I'm
having is when one of the cells is empty. I'm not sure how to explain
what it looks like but it looks like the cells is missing. If there's
two cells side by side that don't have any values then the border
between those two cells is missing. It basicly looks like there's
holes in the table.

Originaly I thought it was because of null values so I had the
database ckecked if there null and if they are then replace them with
" " but I still have the same problem.

Iis there a way I can get rid of these holes??
 
J

Jonathan N. Little

Martix said:
I'm having a small issue with tables.

I'm using asp to display database date into a table. The problem I'm
having is when one of the cells is empty. I'm not sure how to explain
what it looks like but it looks like the cells is missing. If there's
two cells side by side that don't have any values then the border
between those two cells is missing. It basicly looks like there's
holes in the table.

Originaly I thought it was because of null values so I had the
database ckecked if there null and if they are then replace them with
" " but I still have the same problem.

Iis there a way I can get rid of these holes??

In stylesheet:

TABLE { empty-cells: show; }
 
J

Jonathan N. Little

Jonathan said:
In stylesheet:

TABLE { empty-cells: show; }

HA-HA! Good old POS IE doesn't follow the rules as usual! The above
*should* work but IE will not cooperate so all you have to do is on your
ASP script is substitute all null values for " " and your problem
is solved...
 
T

Tina Peters

Martix said:
I'm having a small issue with tables.

I'm using asp to display database date into a table. The problem I'm
having is when one of the cells is empty. I'm not sure how to explain
what it looks like but it looks like the cells is missing. If there's
two cells side by side that don't have any values then the border
between those two cells is missing. It basicly looks like there's
holes in the table.

Originaly I thought it was because of null values so I had the
database ckecked if there null and if they are then replace them with
" " but I still have the same problem.

Iis there a way I can get rid of these holes??

Just toss a &nbsp in there and it should behave.

--Tina
 
B

BootNic

Jonathan N. Little said:
[email protected]


HA-HA! Good old POS IE doesn't follow the rules as usual! The above
*should* work but IE will not cooperate so all you have to do is on
your ASP script is substitute all null values for " " and your
problem is solved...

*IF* collapsing the border is acceptable, IE may play along just a little
better.
http://home.earthlink.net/~bootnic/ShowEmptyTableCell.html

--
BootNic Wednesday, April 04, 2007 2:57 PM

The world is very different now. For man holds in his mortal hands
the power to abolish all forms of human poverty, and all forms of
human life.
*John Fitzgerald Kennedy, Inaugural Address*
 
A

Adrienne Boswell

I'm having a small issue with tables.

I'm using asp to display database date into a table. The problem I'm
having is when one of the cells is empty. I'm not sure how to explain
what it looks like but it looks like the cells is missing. If there's
two cells side by side that don't have any values then the border
between those two cells is missing. It basicly looks like there's
holes in the table.

Originaly I thought it was because of null values so I had the
database ckecked if there null and if they are then replace them with
" " but I still have the same problem.

Iis there a way I can get rid of these holes??

Yes, use the GetString method - <http://tinyurl.com/33vqky>

String = recordset.GetString(StringFormat, NumRows, ColumnDelimiter,
RowDelimiter, NullExpr)
 
J

Jukka K. Korpela

Scripsit Martix:
I'm using asp to display database date into a table. The problem I'm
having is when one of the cells is empty. I'm not sure how to explain
what it looks like

A URL is worth a thousand words.
but it looks like the cells is missing.

I guess many people know what you are talking about, but the URL would be
useful for a different purpose too: for guessing what might be adequate
content for the empty cell.

Before deciding to use &nbsp; (or the no-break character itself) as
suggested in the discussion - it's in most cases the best practical approach
_if_ you really want an empty cell -, consider _why_ the cell is empty.
Think about the user's view on it: I see an empty cell - what does it
indicate? The user might be puzzled.

In a data table, an empty cell might indicate lack of data (e.g., not
measured yet), or data that logically cannot exist, or no events (which
might better be presented using the digit zero or a dash), or data that
cannot be presented for privacy or other reasons. For each of them, some
non-blank characters might express the meaning better than an empty cell.
More on this (including some suggested notations), see
http://www.cs.tut.fi/~jkorpela/html/emptycells.html
 
D

dorayme

"Jukka K. Korpela said:
Before deciding to use &nbsp; (or the no-break character itself) as
suggested in the discussion - it's in most cases the best practical approach
_if_ you really want an empty cell -, consider _why_ the cell is empty.
Think about the user's view on it: I see an empty cell - what does it
indicate?

I absolutely agree. Not enough people understand that there is a
whole world to be understood in what does not exist.
 
J

Jonathan N. Little

dorayme said:
I absolutely agree. Not enough people understand that there is a
whole world to be understood in what does not exist.

<?php echo "[This space intentionally left blank]"; ?>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top