473,587 Members | 2,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

freezing column headers with dropdowns

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/e...olumn-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(docu ment.getElement ById('table_con tainer').scroll Top);
border-left : 1px solid #ffffff;
position : relative;
z-index : 1
}

th.locked_top {
background-color: #88ff88;
font-weight : bold;
top :
expression(docu ment.getElement ById('table_con tainer').scroll Top);
position : relative;
z-index : 1
}

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

</style>
</head>

<body>

<div id='table_conta iner'>

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

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

<tr>
<td >2</td>
<td >two</td>
<td >deux</td>
<td>
<SELECT>
<OPTION VALUE="hello">h ello</OPTION>
<OPTION VALUE="world">w orld</OPTION>
</SELECT>
</td>
</tr>

<tr>
<td >3</td>
<td >three</td>
<td >trois</td>
<td>
<SELECT>
<OPTION VALUE="hello">h ello</OPTION>
<OPTION VALUE="world">w orld</OPTION>
</SELECT>
</td>
</tr>

<tr>
<td >4</td>
<td >four</td>
<td >quattre</td>
<td>
<SELECT>
<OPTION VALUE="hello">h ello</OPTION>
<OPTION VALUE="world">w orld</OPTION>
</SELECT>
</td>
</tr>

<tr>
<td >5</td>
<td >five</td>
<td >penta</td>
<td>
<SELECT>
<OPTION VALUE="hello">h ello</OPTION>
<OPTION VALUE="world">w orld</OPTION>
</SELECT>
</td>
</tr>

<tr>
<td >6</td>
<td >six</td>
<td >hex</td>
<td>
<SELECT>
<OPTION VALUE="hello">h ello</OPTION>
<OPTION VALUE="world">w orld</OPTION>
</SELECT>
</td>
</tr>

</tbody>

</table>

</div>
</body>
</html>

Dec 16 '05 #1
0 4644

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

Similar topics

6
4308
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx pages, each page contains a common .ascx. This ascx serves two purposes, 1. it contains a tab strip with response.redirects to navigate to the other pages; 2. I authenticate the user by check to see if...
4
5086
by: Hans Merkl | last post by:
Hi, Is there a way to show the column headers of a GridView control even if there is no data? The only thing I see is the EmptyDataTemplate but I would also like to display the column headers. Thanks Hans
1
10228
by: ElenaR | last post by:
I need to figure out how to name my column headers in a DataGrid. In VB6, I could write DataGrid1.Columns(0).Caption = "ID". What is the format for VB.NET? Thanks in Advance!
2
1634
by: Job Lot | last post by:
Is there any way of freezing columns in Windows Forms Data Grid control? Thanks
7
2035
by: bearophileHUGS | last post by:
Most of my ideas seem usless or stupid, but I think expressing them here doesn't harm much. This is an idea for Py 3.0, because it's not backward compatible. Dicts and sets require immutable keys, like tuples or frozensets, but to me they look like a duplication. So the idea is to remove tuples and frozensets (and replace the few other uses...
2
1986
by: John Walker | last post by:
Hi, We have a datagrid with column headers. If the datagrid has more than say 25 rows the user needs to scroll down to be able to see the rest of the grid. When the user does this the column headers scrolls up off the screen and it becomes hard for the user to determine what the columns are. Is there a way to keep the columns headers in...
0
995
by: Phuff | last post by:
I'm trying to do something and its proving tricky. When someone clicks the edit button I don't want to use the standard textbox, so I create a templated column. I need 2 dropdowns and a textbox. When they select a category in the first dropdown the second is populated correctly. that works. Now I want the textbox's text to be populated...
6
2809
by: hem | last post by:
Hi, I have the following small program which read password from user after echoing off. But the problem is, it is freezing for some time (not sure about the duration) before going to the next statement and I have to press "enter" multiple times (maximum 4, it is not consistent though). I am trying it on a hp-ux machine with aCC compiler. ...
14
4597
by: fh217 | last post by:
Hi I have a datasheet with 32 columns, the first 2 columns are frozen and disabled. What I would like to do is as a user tabs thru a row on the sheet is to shift the sheet to the left so it becomes the first column next to the frozen columns ( column 3 ), also if the user back tabs the sheet would shift to the right. I am doing it now by...
0
7852
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...
0
8216
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. ...
1
7974
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8221
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6629
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...
0
5395
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...
0
3845
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...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1455
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.