1

I am trying to create an efficient way to create a fixed table header. I already have a javascript version which does make it floating using calculation based on offset. Any kind of help will be great.

2 Answers 2

3

Yes there is, I would have explained it to you but Chris Coyer @ CSS-Tricks already made an epic screencast on the subject, so I won't bother :)

Sign up to request clarification or add additional context in comments.

Comments

0

Have a look at a closely-similar question with answers: Is there a css3 way to fix a <thead> on the y-axis, let it scroll on the x-axis?

I don't know how do this with just CSS. The issue is that you want the header to scroll horizontally, even while it's fixed vertically, and the only way I've found to accomplish the effect is with JavaScript.

HTH

1 Comment

I know how to make it work using javascript. But I was looking for a way that I can do it directly by making table relatively positioned and have thead position fixed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.