473,698 Members | 2,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Column Visibility Collapse Problem

Stylists...

I'm having problems collapsing a column. Specifically, I want to
collapse the last column of a table. My initial test with a large data
set worked, but I cannot make it work with a small example.

Here are links to the data files (source included below):

http://home.covad.net/~holmespun/200...apse_test.html
http://home.covad.net/~holmespun/200...lapse_test.css

These Validate for HTML and CSS using the W3C validation tools.

I'm working with FF 1.0.1 (Windows & Linux). The test also fails for IE
6.0 but I already know of a "display:no ne" work-around.

http://www.richinstyle.com/test/tabl...ycollapse.html

I would not be concerned, but for my initial success, and for the fact
that the RichInStyle.com test page for collapsing columns (link above)
appears to work.

Additional note 1: Adding "visibility:col lapse" style to the <th> and
each <td> of the third column causes the data in these cells to be
hidden in FF, but the column still does not collapse.

Additional note 2: Adding the IE work-around "display:no ne" style to
the third column causes FF to ignore the column width setting. FF
correctly ignores the "display:no ne" style for the column.

Thanks in advance.

....Holmespundi t

-- CSS Follows:

/*
** 20050320_column _visibility_col lapse_test.css
*/

table {
border: 2px solid;
}

td {
border: 1px dashed;
text-align: center;
}

col {
width: 200px;
}

col.noshow {
visibility: collapse;
}

/* (eof)
*/
-- HTML Follows:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>

<title>
20050320 Column Visibility Collapse Test
</title>

<style type="text/css">
@import "20050320_colum n_visibility_co llapse_test.css ";
</style>

</head>

<body>

<h1>
20050320 Column Visibility Collapse Test
</h1>

<div>

<table>

<col/>
<col/>
<col class="noshow"/>

<tr>
<th>One</th>
<th>Two</th>
<th>Three</th>
</tr>

<tr>
<td>Uno</td>
<td>Due</td>
<td>
Many words that should not be seen.
</td>
</tr>
<tr>

<td>Won</td>
<td>Too</td>
<td>
Many words that should not be seen.
Many words that should not be seen.
Many words that should not be seen.
</td>
</tr>
</table>

</div>

</body>
</html>

Jul 21 '05 #1
1 7546
DU
Holmespundit wrote:
Stylists...

I'm having problems collapsing a column. Specifically, I want to
collapse the last column of a table.


Valid and cross-browser interactive demo working for MSIE 6, Mozilla
1.x, Opera 7.x, NS 7.x:

http://www.gtalbot.org/HTMLJavascrip...nCollapse.html

With border-collapse: collapse, there will be layout bugs.

DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Mozilla 1.7.6 :)
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1935
by: carmen | last post by:
I'm using the code below to display the results in rows with the column header as hyperlinks that will sort the rows by colum heading. Is there a way to have the results sorted (as default) in reverse order so that the most recent are at the top of the page also when the user selects the Open Date or Status column headings, sort the data in reverse order . Code is below. Thanks <% ppl_ctr=0
3
29677
by: Jukka K. Korpela | last post by:
I have noticed that the meaning of visibility: collapse has been discussed on different forums, but with no consensus on what it really means. Besides, implementations differ. The specification says: "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...
3
10710
by: Steve Sabljak | last post by:
I seem to having a little trouble getting a table to display correctly in both msie and firefox. I want to set the table and column widths in pixels, and have some cell padding too. The table displays correctly in standards compiance mode in firefox, but not msie, where the padding is added on to the column widths. the table size is always correct, but the column widths are not what I expect them to be. If I change the column widths to...
5
169726
by: Jean Pion | last post by:
Dear readers, Can anyone explain how to set column width of a table in ccs. I use the following style in an external stylesheet: table.tbl { table-layout:fixed; border-top: 5px solid #333; border-collapse: collapse; background: #fff; width: 95%} table.tbl td { border-bottom: 1px dashed #33ccff; padding: 2px 5px; text-overflow:ellipsis; overflow:hidden; white-space:nowrap; }
6
5051
by: darrel | last post by:
I'm using some validators for a form. I'm noticing that it writes the text out to the browser as a SPAN with it's visibility set to none. The problem is that it still takes up space, so I have gigantic gaps in my form. It SHOULD be set to display: none instead. Is this a setting in the control somewhere or is this just a huge oversight on MS's part? If the latter, any suggestions for a workaround? Perhaps wrapping the validator in a...
0
4646
by: nkparimi | last post by:
Hi, Here's what I'm trying: given an html table, to freeze the column headers and/or left column in IE. I understand that this is possible thru style sheets in IE, as suggested in the following: http://web.tampabay.rr.com/bmerkey/examples/locked-column-csv.html http://www.adp-gmbh.ch/web/css/expression.html
3
3205
by: =?ISO-8859-1?Q?Ney_Andr=E9_de_Mello_Zunino?= | last post by:
Hello. I seek confirmation for the reasons behind a margin-related behavior I have observed. I have set up a simple test page to illustrate the issue. The page shows a very simple 2-column layout, where columns are contained in /div/ elements. The first column is floated left and the second one is offset by a left margin. You should be able to notice that the contents of the first column are lower than those of the second one. Is...
0
1331
by: Joel Ryan | last post by:
hello, I'm currently working with a xamdatagrid, this grid is bound to a dataset as its source, and what im trying to do is, based on the column name(or the field name as the xamdatagrid calls it i think) i want to make that field invisible but every time ive tried it says object not referenced to an instance of an object. heres the code im working with, i figure if i can figure it out here i can use it in another program Imports...
0
2309
by: bharathreddy | last post by:
Hi All, I am using a listview control in my usercontrol so that it can be used in more than one form. This user control has one column extraw, so i want to make it invisible depending on the form it is being used. I am using table in the listview control for formating purpose. In this table I want to hide a column. Is it posible to hide the column?. I am facing the problem because I cant catch the row its showing null values. ...
0
8611
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9170
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9031
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7741
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6531
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.