473,378 Members | 1,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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

RC
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!
Nov 30 '05 #1
2 2642
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
Nov 30 '05 #2
On Wed, 30 Nov 2005 08:01:04 -0500, RC <ra**********@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!
Nov 30 '05 #3

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

Similar topics

0
by: Federico Moschini [328594] | last post by:
I have to make difference between2 data from a table in SQL. The page is made with Frontpage, and it extracts QtaGiaCons and Quantita from table "oclrighe". I have to make Quantita -...
3
by: J Vaughan | last post by:
Hi. Simple question here. I am using a table (not for layout) as follows: <table> <tr><th>Name:</th><td>Fred</td></tr> <tr><th>Tel:</th><td>11111111</td></tr>...
44
by: Jim M | last post by:
I have had great success with using <iframe> with overflow-y set to auto. I can get a similar look with the <iframe> tag. BUT... In all cases I need to have fixed heights. Is there a way to...
3
by: Luigi Donatello Asero | last post by:
Is an index in a database the equivalent for a <TH scope="col"> in a column of a table in the html code? -- Luigi ( un italiano che vive in Svezia)...
6
by: hsomob1999 | last post by:
so i have a <ul> and I allow the user to append items to it. The problem is that on mozilla the <span class="line"> which is just a line to divide the sections gets overlaped and doesnt move down...
3
by: RC | last post by:
I have a very sime html table like <html><head><title>My Table</title> <style> input { margin: 0; padding: 0; border-width: 0; text-indet: 0; text-align: left } </style></head><body> <table...
2
by: RC | last post by:
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...
3
by: RC | last post by:
Dear Dudes, I post this in multiple groups for opening brain storm. Sometime I need to query the data from database server then display them into user's browser in HTML <table>. But if the...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.