Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm stuck with a problem of fixed header table. I'm using AngularJS & Bootstrap to build a web application. I can't use ng-grid as it don't support IE7. So, I'm populating the table rows by ng-repeat. The application is responsive. So, I can't give fixed width to the cells/headers. Is there any simple way to have the table headers fixed?

I've put up a Plunker at Fixed header table with AngularJS

Thanks in advance.

share|improve this question
 
I don't understand, you want table headers fixed but also responsive. How is that possible? –  Stewie Jun 28 at 10:03
 
@Stewie please see this: fixedheadertable.com –  Arnab Das Jun 28 at 10:06
 
@Stewie you can also take the example of ng-grid. If you set the header fixed, it remains responsive. –  Arnab Das Jun 28 at 10:09
 
A-ha, you want it's position fixed. I thought you want to have fixed column widths. –  Stewie Jun 28 at 10:11
2  
Keep in mind that IE7 isn't supported for AngularJS. –  matsko Sep 14 at 14:26
show 1 more comment

1 Answer

You better to keep the header part outside the table. Take two tables:

  • one for header and
  • another one for table data. (put the scroller in table data part only.)

Good luck!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.