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
  • #12843
Closed
Open
Issue created Feb 25, 2014 by Administrator@rootContributor

labels in .horizontal-form at small widths closer to the inputs below

Created by: ds125v

If you compare the two example forms in the documentation at these links:

http://getbootstrap.com/css/#forms-example

http://getbootstrap.com/css/#forms-horizontal

At smaller screen widths, when both are stacked vertically, I would have expected them to look roughly the same (ignoring the fact that one has a file input that the other doesn't). They mostly do, but the labels in the .form-horizontal are much closer to the input below them than in the basic example (which I personally think looks better) .

Perhaps these lines, which set the bottom-margin to zero on the labels as well as some other stuff, are slightly too broad and can be tweaked so they don't affect this situation?

https://github.com/twbs/bootstrap/blob/master/less/forms.less#L395-L406

Assignee
Assign to
Time tracking