Topic: Block level button centering

aurpine free asked 6 years ago


The block level buttons aren't centered-they're slightly off. Block level buttons Notice how the button's sides aren't aligned with the code box below. This has been previously mentioned, but misunderstood. I believe that it is a problem with the 6px margin of the .btn class. If I remove the margin via inspect element, even just the left and right margins, it becomes centered.

Michal Szymanski staff answered 6 years ago


Yes, it's a bug caused by 6px margin of standard .btn . It will be fixed with the next update. You can do it on your own by setting a margin to inerhit
  .btn-block {
            margin: inherit;
        }


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Specification of the issue

  • User: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: Yes