Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed position thead #159

Open
starba3 opened this issue Oct 1, 2018 · 1 comment
Open

fixed position thead #159

starba3 opened this issue Oct 1, 2018 · 1 comment

Comments

@starba3
Copy link

starba3 commented Oct 1, 2018

how to make thead position fixed and not move when scrolling?

@santosh-k1
Copy link

I have used position: sticky; to fixed the header with normal Table.. example as below -

th {
padding: 1em 0.5em;
color: #878686;
position: -webkit-sticky;
position: sticky;
top: 0px;
border-left: 1px solid #eee;
border-bottom: 1px solid #ddd;
font-size: 13px;
text-align: center;
z-index: 6;
background: #fff;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants