Re: visibility=collapse

I'm probably being stupid, but I still dont see the difference.

>>"collapse" has a special meaning for rows, row groups, columns and column
groups in tables<<

Here is the special meaning

"The 'visibility' property takes the value 'collapse' for row, row group,
column, and column group
     elements. This value causes the entire row or column to be removed from
the display, and the space
     normally taken up by the row or column to be made available for other
content. The suppression of
     the row or column, however, does not otherwise affect the layout of the
table. This allows dynamic
     effects to remove table rows or columns without forcing a re-layout of
the table in order to account for
     the potential change in column constraints. "

So if I set <TR STYLE= “visibility:collapse”> the content of the row would
be invisible, but the row would still be there.

But I still don't understand why <TR STYLE= “visibility:hidden”> wouldnt do
exactly the same thing.

"hidden
          The generated box is invisible (fully transparent), but still
affects layout."

In other words the box  content is invisible, but the space it would have
occupied is still there, so whats the difference?

Frank



-----Original Message-----
From: Tim Bagot <tim@oakley.keble.ox.ac.uk>
To: Style Sheet mailing list <www-style@w3.org>
Date: Thursday, May 21, 1998 6:27 PM
Subject: Re: visibility=collapse




On Thu, 21 May 1998, Frank Boumphrey wrote:

> Perhaps I am missing something, but why should
> <TR STYLE= “visibility:collapse”>.
>
> be used in stead of
>
> <TR STYLE= “visibility:hidden”>
>
> shouldn't they produce the same result.? After all neither causes the
> elements to reflow.

"collapse" has a special meaning for rows, row groups, columns and column
groups in tables. See

http://www.w3.org/TR/REC-CSS2/visufx.html#visibility        and
http://www.w3.org/TR/REC-CSS2/tables.html#dynamic-effects

Tim Bagot

Received on Thursday, 21 May 1998 22:47:00 UTC