Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #12780
Closed
Open
Issue created Feb 19, 2014 by Administrator@rootContributor

Consider adding class table-fixedheader

Created by: DavidRueter

Please consider adding a class named table-fixedheader that can be applied to a table so that the body scrolls under fixed headers.

See this JSFiddle for a working demo: http://jsfiddle.net/drueter/yqgB5/3/

All that is needed:

table.table-fixedheader>tbody {
    display: block;
}

table.table-fixedheader>tbody {
    overflow-y: auto;
    height: 50px; /*placeholder:  override as needed*/
}

table.table-fixedheader>thead>tr>th, table.table-fixedheader>tbody>tr>td {
    float: left;
    width: 100px; /*placeholder:  override as needed*/
}

See comments in JSFiddle for usage notes. This seems to work well.

Assignee
Assign to
Time tracking