8000 [css-tables][css-position] sticky cols · Issue #3577 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-tables][css-position] sticky cols #3577

@inoyakaigor

Description

@inoyakaigor

I want to suggest an idea that can help to display large tables: sticky position for table columns (for easy horizontal scroll). It is basic functionality in desktop programs like MS Excel. Currently we can find many solutions for this based on some CSS tricks and additional JS calculations but all of this is worst and have a lot of restrictions and errors in edge cases.

Basic concept:

  • position: sticky only for first column
  • position: sticky inside <td> styles makes this column stuck
  • position: sticky for <tr> makes row stuck

Of course there are a big number edge cases (e.g. which behavior should be with table-layout: fixed?) and all of it will be resolved if this idea will develop

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0