Mottie / tablesorter

Github fork of Christian Bach's tablesorter plugin + awesomeness ~
https://mottie.github.io/tablesorter/docs/
2.61k stars 754 forks source link

Border of StickyHeader #674

Closed Tedd22 closed 10 years ago

Tedd22 commented 10 years ago

Hi,

It seems that that the sticky header doesn't inherit the border-top property of the header when scrolling down

See it here : http://jsfiddle.net/Ted22/LR3sX/53/

Thanks in advance !

Ted

Mottie commented 10 years ago

Hi @Tedd22!

The stickyHeaders widget removes all borders from the cloned table because of the bottom border mostly. It is really easy to add a border across the top, simply add some css specifically for the sticky header. It will have an ID of the table plus "-sticky" (demo):

#myTable-sticky {
    border-top: solid 3px red !important;
}

I added the !important flag so it will override the inline border:0 set on the sticky table

Tedd22 commented 10 years ago

Ok, thank you Mottie !

Mottie commented 10 years ago

I'm guessing this issue has been resolved, so I'm going to close it. If you continue to have problems, please feel free to continue this discussion.