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
  • #11990
Closed
Open
Issue created Dec 23, 2013 by Administrator@rootContributor

Input type="range" formatting oddities

Created by: Steve-OH

If we stack a text or number style input over a range input inside a col-xx div, they don't align very well:

<div class="col-md-3">
  <input type="number" class="form-control input-sm" />
  <input type="range" />
</div>

slider1

We can fix the alignment by adding a col-xx-12 class to the range input:

<div class="col-md-3">
  <input type="number" class="form-control input-sm" />
  <input type="range" class="col-md-12" />
</div>

But now the slider doesn't go all the way to the ends of the "track":

slider2

We have to remove the padding to get the slider to work correctly:

<div class="col-md-3">
  <input type="number" class="form-control input-sm" />
  <input type="range" class="col-md-12" style="padding:0;" />
</div>

slider3

(Screenshots are all from Chrome 31 on Windows 7.)

See also #11177 (closed).

Assignee
Assign to
Time tracking