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
  • #18596
Closed
Open
Issue created Dec 17, 2015 by Administrator@rootContributor

<a> btn with .center-block becomes as wide as its container

Created by: davidjameslettice

Hey,

I'm not sure if this is by design, or a v4 bug, or if I've overlooked something.

Essentially I'm creating a multi-page form, and I have the following code: <a class="btn btn-primary center-block" href="/signup/first_page" role="button">Previous</a> <button type="submit" class="btn btn-primary center-block" id="next">Next</button>

Obviously this is to create a Previous and Next button, with the Next button submitting, and the Previous acting as a link to the previous page.

The Next button works fine with the 'center-block' class, it centers the button and nothing more. However the Previous button spans the whole width of the page. I've tried putting them both within a center-block div but that didn't make any difference.

Any advice, or is this a bug?

Assignee
Assign to
Time tracking