Sent by Slaydon, Eugenia on 8 July 2004 21:09
From: David Seguin
> I don't know what your browser requirements are, but here's a
> nonstandard ie 5+ trick:
> This is your markup:
> <div id="scrollresults">
> <table class="resultstable" cellspacing="0">
> <thead>
> <tr>
> <td width="35%">Heading here</td>
> <td width="65%">Heading here</td>
> </tr>
> </thead>
> <tbody>
> ...
> (rest of table)
> ...
> </tbody>
> </table>
> </div>
> and this goes in the style sheet:
> .resultstable thead td {
> background: #FFF;
> border-bottom: 1px solid #9F9F9F;
> border-top: 3px solid #9F9F9F;
> color: #000;
> font-weight: bold;
> position: relative;
> text-align: left;
> top:
> expression(document.getElementById("scrollresults").scrollTop-2);
> }
> #scrollresults {
> height: 60%;
> overflow: auto;
> }
David is the man!
This is exactly what I needed and works perfectly AND fixed all the little
issues I was having with the other solutions. I believe that the code could
be modified to handle NN as well? Maybe hide the css from them and just feed
this to IE?
Thanks to everyone for the various solutions and ideas that were so
generously offered.
Eugenia
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/