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 having an issue with my table styled with bootstrap and filled by ng-repeat (AngularJS) I want it to be fixed so I tried adding

.fixed-header thead {
    position        : fixed;
}

and

<table class="table table-striped table-bordered fixed-header">

yet, even if the header is fixed, and positionned as I want it to be, it is not synchronized with the body and goes on the first line. I also tried another solution :

.fixed-header tbody {
    overflow-y: auto;
    max-height: 400;
}

And it has no effect at all. My table is normal.

I really need the body to be synchronized with the header in terms of style.

Thanks.

EDIT : @dcodesmith

Actually since I've come across solutions I don't want to use, I prefere state the technologies that I'm using. in details I've read and tested those two topics :

Fixed header table in AngularJS

Twitter bootstrap scrollable table

and both of them won't work if I want something close to http://www.fixedheadertable.com/

share|improve this question
 
Shouldn't this be tagged under CSS. This is more of a CSS question than it is AngularJS –  dcodesmith Nov 26 at 11:11
 
Generally need a clone of top row in different container if using <table> element –  charlietfl Nov 26 at 12:53
 
The cloned table isn't sufficient. For some reason, when I apply .fixed-header to thead (of the clone) it's transparent and when i apply it to table, it's not fixed ... –  Spades Nov 26 at 13:14
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.