Link to home
Create AccountLog in
Avatar of kcmoore
kcmooreFlag 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?
Avatar of ldbkutty
ldbkutty
Flag of India image

<th> is the header tag for <table>
Refer here for example : http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_table_header
Avatar of 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
Avatar of ldbkutty
ldbkutty
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
view that site in IE (its not working in mozilla). If you want such a script, I will give similar one.
Avatar of kcmoore

ASKER

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