![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Try splitting the table into thead, tbody, and tfoot (if necessary). Then use the styles on the tbody. Note that I did not test this. |
#3
| |||
| |||
|
|
On Mon, 20 Oct 2003 14:20:47 GMT, Brian usenet1 (AT) julietremblay (DOT) com.invalid-remove-this-part> wrote: Try splitting the table into thead, tbody, and tfoot (if necessary). Then use the styles on the tbody. Note that I did not test this. Thank you Brian, but what property should I use not to scroll the thead? |
#4
| |||
| |||
|
|
I just checked the original message. You have div with fixed height and overflow: auto. (BTW, if the table contains text, you should really set height in em or ex units, and not pixels.) I've never tried something like this, and I don't have time to test it myself, but it sounds like you can play around with this a bit. Now set the height on tbody, with overflow: auto, and tell me how it comes out. I'm curious to know. Good luck. |
#5
| |||
| |||
|
|
On Mon, 20 Oct 2003 20:19:19 GMT, Brian usenet1 (AT) julietremblay (DOT) com.invalid-remove-this-part> wrote: I just checked the original message. You have div with fixed height and overflow: auto. (BTW, if the table contains text, you should really set height in em or ex units, and not pixels.) I've never tried something like this, and I don't have time to test it myself, but it sounds like you can play around with this a bit. Now set the height on tbody, with overflow: auto, and tell me how it comes out. I'm curious to know. Good luck. I applied your suggestion. You can have a look here: http://www.ribesinformatica.it/demo/table2.html With Opera 7.20, IE 5.5 and IE 6.0 the TBODY doesn't scroll and the table looks like a normal, non-formatted, table. With IE the height specified for the TBODY is appied (erroneously, I think) to each TR. With Mozilla 1.4.1, the TBODY scrolls, but cell borders don't. My fear is that CSS support of non-Mozilla browsers is not to poor to achive this effect :-( BTW I used the W3C validators and the HTML page and the CSS are valid. Bye, Andrea. Darn, I was hoping you could do it. |
![]() |
| Thread Tools | |
| Display Modes | |
| |