Click here to get back home

freezing column headers with dropdowns

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
freezing column headers with dropdowns nkparimi 12-15-2005
Get Chitika Premium
Posted by nkparimi on December 15, 2005, 5:10 pm
Please log in for more thread options


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

However, I've found that these methods donot work on a column that has
dropdowns in it (i.e. select tag with option tags in it). Does anyone
have suggestions on how to get this working for dropdowns?

thanks
Nagender

Here's a snippet that I have:

<html>
<head>
<title>Some Title</title>
<style>

table {
border-collapse : collapse;
table-layout : fixed;
}

td, th {
background-color: #aaaaaa;
border-right : 1px solid #ffffff;
color : #ffffff;
width : 100px;
text-align : center;
}

th.locked_both {
background-color: #88ff88;
font-weight : bold;
top :
expression(document.getElementById('table_container').scrollTop);
border-left : 1px solid #ffffff;
position : relative;
z-index : 1
}

th.locked_top {
background-color: #88ff88;
font-weight : bold;
top :
expression(document.getElementById('table_container').scrollTop);
position : relative;
z-index : 1
}

#table_container {
width : 300px;
height : 100px;
overflow : scroll;
}

</style>
</head>

<body>

<div id='table_container'>

<table>
<thead>
<tr>
<th class='locked_top'>Number</th>
<th class='locked_top' >English</th>
<th class='locked_top' >French </th>
<th class='locked_top' >German </th>
</tr>
</thead>

<tbody>
<tr>
<td >1</td>
<td >one</td>
<td >un</td>
<td>
<SELECT>
<OPTION VALUE="hello">hello</OPTION>
<OPTION VALUE="world">world</OPTION>
</SELECT>
</td>
</tr>

<tr>
<td >2</td>
<td >two</td>
<td >deux</td>
<td>
<SELECT>
<OPTION VALUE="hello">hello</OPTION>
<OPTION VALUE="world">world</OPTION>
</SELECT>
</td>
</tr>

<tr>
<td >3</td>
<td >three</td>
<td >trois</td>
<td>
<SELECT>
<OPTION VALUE="hello">hello</OPTION>
<OPTION VALUE="world">world</OPTION>
</SELECT>
</td>
</tr>

<tr>
<td >4</td>
<td >four</td>
<td >quattre</td>
<td>
<SELECT>
<OPTION VALUE="hello">hello</OPTION>
<OPTION VALUE="world">world</OPTION>
</SELECT>
</td>
</tr>

<tr>
<td >5</td>
<td >five</td>
<td >penta</td>
<td>
<SELECT>
<OPTION VALUE="hello">hello</OPTION>
<OPTION VALUE="world">world</OPTION>
</SELECT>
</td>
</tr>

<tr>
<td >6</td>
<td >six</td>
<td >hex</td>
<td>
<SELECT>
<OPTION VALUE="hello">hello</OPTION>
<OPTION VALUE="world">world</OPTION>
</SELECT>
</td>
</tr>

</tbody>

</table>

</div>


</body>
</html>


Similar ThreadsPosted
Freezing the width of TABLE cells June 20, 2008, 1:12 pm
Three column layout, middle column clear:both; affects other two columns;no tables March 9, 2007, 11:31 pm
Implied width of implied center column in 3 column table June 30, 2008, 4:23 am
css and div for headers? November 12, 2007, 5:02 pm
Html Headers March 23, 2006, 10:51 pm
"MUST REPLY" HTTP response headers April 13, 2005, 2:22 am
Writing headers for an HTML only when printing July 17, 2006, 5:31 am
Different Content-type: headers, Firefox and IE February 5, 2007, 1:53 pm
Help putting standard headers on all pages September 20, 2008, 8:53 pm
Three column forms with CSS October 23, 2006, 7:29 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap