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
  • Merge requests
  • !25255

Remove `position: relative` from grid columns

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Mark Otto requested to merge relative-columns into v4-dev Jan 10, 2018
  • Overview 0
  • Commits 3
  • Pipelines 0
  • Changes 1

Prompted by #25254 (closed), I dug into our Git history to see why we add position: relative to our grid classes and mixins. Turns out, I have no idea and added it to v3 in a commit that fixed an unrelated issue—see https://github.com/twbs/bootstrap/commit/0f17f9b7f7fe15bb4ce6301caa2600bfd30e63d7. This change would restore a default, and implicit, position: static, allowing you to opt into whatever positioning you need.

I don't see this as a breaking change—we change properties and values as needed—but I could see this being confusing and unnecessary either way.

Thoughts from folks?

Closes #25254 (closed).


Todos if moving forward
  • Update docs snippets around mixins
  • Verify docs don't mention relative position
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: relative-columns