Purpose of <THEAD> tag??

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What is its true purpose of <THEAD>. References I find say it supposed to
allow the header of table remain static while the remainder of the table can
be scolled. Have I miss inturpreted this since it doesnt seems to do that????

I trying to avoid using IFRAME since the page in question is already an
IFRAME itself (IFRAME within IFRAME)

I need a IFRAME where the page in the frame has static table headers/

Ideas, suggestions??
 
Right, the <thead> tag doesn't do that. In fact, nothing I know of does that.
You would have to find or write a custom ActiveX or .NET control.

The hard part is getting the table headings and the table data to line up.
For example, you can create two tables -- one for the heading and one for the
data -- and put the data table inside a scrollable <div>. But there's no
guarantee that all the columns in both tables will have exactly the same
width. If even one data cell happens to contain an unusually long word, all
your widths and offsets will be off.

The only consolation is that no one else on the Web has this either.

Jim Buyens
Microsoft MVP
http://www.interlacken.com
Author of:
*-----------------------------­-----------------------
|\----------------------------­-----------------------
|| Microsoft Windows SharePoint Services Inside Out
|| Microsoft Office FrontPage 2003 Inside Out
||----------------------------­-----------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/----------------------------­-----------------------
*-----------------------------­-----------------------
 
I manged to put tothers some CSS that will accomplish static headers within a
sigle table. By applying CSS to the <THEAD> section of a table and then using
a <DIV> to gain the scrolling of the remain rows, everything is in a single
table and lines up every time. I found a piece of code I stuck in there that
will allow locking of a specfic column so the user can scroll left and right
as well. But this portion only seems to work with IE.
 
Back
Top