{"id":15263184,"url":"https://github.com/cityssm/bulma-sticky-table","last_synced_at":"2026-01-07T17:27:09.144Z","repository":{"id":44774058,"uuid":"382381612","full_name":"cityssm/bulma-sticky-table","owner":"cityssm","description":"A Bulma-friendly way to stick a table header, table footer, first column, or all three!","archived":false,"fork":false,"pushed_at":"2025-03-19T14:26:12.000Z","size":651,"stargazers_count":25,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-01T16:33:10.326Z","etag":null,"topics":["bulma","css","hacktoberfest","scss","sticky","table"],"latest_commit_sha":null,"homepage":"https://cityssm.github.io/bulma-sticky-table/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cityssm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-02T15:03:51.000Z","updated_at":"2025-03-19T14:14:26.000Z","dependencies_parsed_at":"2024-05-21T17:08:37.410Z","dependency_job_id":null,"html_url":"https://github.com/cityssm/bulma-sticky-table","commit_stats":{"total_commits":26,"total_committers":3,"mean_commits":8.666666666666666,"dds":"0.11538461538461542","last_synced_commit":"53239a825eaac96eb6e9305eb10ee228b8e4ce3f"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fbulma-sticky-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fbulma-sticky-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fbulma-sticky-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fbulma-sticky-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cityssm","download_url":"https://codeload.github.com/cityssm/bulma-sticky-table/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248512484,"owners_count":21116612,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bulma","css","hacktoberfest","scss","sticky","table"],"created_at":"2024-09-30T04:06:39.649Z","updated_at":"2026-01-07T17:27:09.097Z","avatar_url":"https://github.com/cityssm.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bulma-sticky-table\n\n[![npm (scoped)](https://img.shields.io/npm/v/@cityssm/bulma-sticky-table)](https://www.npmjs.com/package/@cityssm/bulma-sticky-table)\n[![Codacy grade](https://img.shields.io/codacy/grade/c7cc4f8adb274706bc57cf4f83abbc80)](https://app.codacy.com/gh/cityssm/bulma-sticky-table/dashboard)\n\n![Screenshot](screenshot.png)\n\nA Bulma-friendly way to stick a table header, table footer, first column, or all three!\n\n**[See It In Action](https://cityssm.github.io/bulma-sticky-table)**\n\n## Installation\n\nDownload a release, or grab the code from npm.\n\n### Bulma v1 or newer\n\n```sh\nnpm install @cityssm/bulma-sticky-table\n```\n\n### Bulma v0.9.4 or older\n\n```sh\nnpm install @cityssm/bulma-sticky-table@2.x\n```\n\n## Usage\n\nWhen building your stylesheet, import `_sticky-table.scss` AFTER you import Bulma.\nThis will ensure your colour customizations are used.\n\n```scss\n@import 'bulma/bulma';\n@import '@cityssm/bulma-sticky-table/sticky-table';\n```\n\nAlternatively, if you are using Bulma without any customizations,\nyou can replace your Bulma stylesheet with `bulma-with-sticky-tables.css`.\n\n```html\n\u003clink\n  rel=\"stylesheet\"\n  href=\"path/to/cityssm/bulma-sticky-table/bulma-with-sticky-table.css\"\n/\u003e\n```\n\nNeed a CDN? Check out [JS Deliver](https://www.jsdelivr.com/package/npm/@cityssm/bulma-sticky-table).\n\nBuild your Bulma table as per usual, using the [Bulma Table Documentation](https://bulma.io/documentation/elements/table/) as your guide.\n\nThen, add any combination of the following classes to your `\u003ctable\u003e` tag.\n\nUse `.has-sticky-header` to stick the header.\n\n- Note that the header should be inside of a `\u003cthead\u003e` tag, and each cell should use a `\u003cth\u003e` tag.\n\nUse `.has-sticky-footer` to stick the footer.\n\n- Note that the footer should be inside of a `\u003ctfoot\u003e` tag, and each cell should use a `\u003cth\u003e` tag.\n\nUse `.has-sticky-column` to stick the first column.\n\n- Note that the first cells in each table row should use the `\u003cth\u003e` tag.\n\n### Note about `.table-container`\n\nThe Bulma `.table-container` wraps around a `.table` to assist with scrolling\naround large tables. The basic idea is that the container changes the `overflow`\nCSS rules on the container. This can affect the `.table`'s ability to stick\nas you'd expect.\n\nWhile `.has-sticky-column` will likely work as expected,\n`.has-sticky-header` and `.has-sticky-footer` may not. There are two options:\n\n1. **Remove the `.table-container` altogether**, and just use the `.table` as is with the\n   desired sticky classes.\n\n2. Add some additional styles to the `.table-container` to change the vertical overflow rule\n   and set a specific height on the container. The example below uses the screen height.\n   Something smaller may be better, depending on your application.\n\n```html\n\u003cdiv class=\"table-container\" style=\"overflow-y:auto;max-height:100vh;\"\u003e\n  \u003ctable\u003e\n    \u003cthead\u003e\n      ...\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n      ...\n    \u003c/tbody\u003e\n  \u003c/table\u003e\n\u003c/div\u003e\n```\n\n## Thanks\n\n[![Made with Bulma](https://bulma.io/images/made-with-bulma.png)](https://bulma.io)\n\nHeavily inspired by [code found on CSS-Tricks](https://css-tricks.com/a-table-with-both-a-sticky-header-and-a-sticky-first-column/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcityssm%2Fbulma-sticky-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcityssm%2Fbulma-sticky-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcityssm%2Fbulma-sticky-table/lists"}