This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > November 2005 > How to make <th> tag always stay in the window/frame?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to make <th> tag always stay in the window/frame?
RC

2005-11-30, 6:41 pm

When you have a large table, you
have to scroll the vertical and/or horizontal
scroll bar(s) to read the table contents
<td> tag. But the problem is you can't see
the column header <th> tag when you scroll
down the vertical scroll bar.
So how do I make <th> tag always stay on
the window/frame. This is similar to spreadsheet
Excel, the scroll bars (vertical and horizontal)
will not effect the column headers.

Thank Q very much in advance!
Jan Steffen

2005-11-30, 6:41 pm

RC schrieb:
> When you have a large table, you
> have to scroll the vertical and/or horizontal
> scroll bar(s) to read the table contents
> <td> tag. But the problem is you can't see
> the column header <th> tag when you scroll
> down the vertical scroll bar.
> So how do I make <th> tag always stay on
> the window/frame. This is similar to spreadsheet
> Excel, the scroll bars (vertical and horizontal)
> will not effect the column headers.


tbody {max-height:30em; overflow:auto;}

Browser support varies.
Fup2 ciwas

Jan
Gianni Rondinini

2005-11-30, 6:42 pm

On Wed, 30 Nov 2005 08:01:04 -0500, RC <raymond.chui@nospam.noaa.gov>
wrote:

>So how do I make <th> tag always stay on
>the window/frame. This is similar to spreadsheet


to have something working fine in different browsers --say: internet
exploder and firefox family--, i had to use different css.
http://www.giannirondinini.com is an example, but my layout was born
on the one i've found on tagsoup.

regards,
--
Gianni Rondinini (30, tanti, RA)
Nikon user - Bmw driver
.... parchè mè an pòs tnì avért e scelf sèza ciapé i bajoc!
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews