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
  • #4929
Closed
Open
Issue created Sep 03, 2012 by Administrator@rootContributor

Responsive utility classes may cause unexpected wrapping

Created by: Starefossen

Adding any of the responsive utility classes may cause an element to "wrap" unexpectedly when right aligning the element using the pull-right class.

<button class="btn pull-right">Button <span class="visible-desktop">Title</span></button>

Expected behavior: If there is enough space the button should be displayed in one single line with the title Button and Title just beside each other.

Actual result: The button wraps after Button. Title is displayed on the line bellow. This is because .visible-desktop takes parent's display property which in this case is the button's inline-block.

Workaround: Wrap the responsive utility in a span in order to give it the right parent display property. <button class="btn pull-right">Button <span><span class="visible-desktop">Title</span></span></button>

jsFiddle: http://jsfiddle.net/fqhTy/1/

Assignee
Assign to
Time tracking