Avatar of kcmoore
kcmoore
Flag for United States of America asked on

Stationary column/table header in html

I am creating an html table from SQL query results. Since the result set varies and can be quite large, i want to make the table/column headers stationary on the page as a scroll through the data rows. How do I accomplish this?
Programming

Avatar of undefined
Last Comment
kcmoore

8/22/2022 - Mon
ldbkutty

<th> is the header tag for <table>
Refer here for example : http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_table_header
kcmoore

ASKER
<TABLE  border='1' width='100' height='0' bordercolorlight='#fff' align='left'
            bordercolordark='#black' bordercolor='#006666' <TH>column1</TH><TH>column2</TH><TH>column3</TH>/>

That is what I have, but the header does not stay stationary. Maybe I am asking this wrong, I guess what I am really wanting  this to do is something akin to Frames, but I am not sure how to accomplish it. Basically, the header stays in view as I scroll down the page looking at the data. Thanks
ASKER CERTIFIED SOLUTION
ldbkutty

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ldbkutty

view that site in IE (its not working in mozilla). If you want such a script, I will give similar one.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
kcmoore

ASKER
That is exactly what I was looking for, thank you so much!!