Skip to content

input type="submit" and btn-block #4666

@caarlos0

Description

@caarlos0

I just figured out that the class btn-block does not work in submit elements.

I thinks that's because this rule:

input[type="file"],
input[type="image"],
input[type="submit"],
input[type="reset"],
input[type="button"],
input[type="radio"],
input[type="checkbox"] {
  width: auto;
}

Here, I made a quick ugly fix:

.btn-block {
  display: block;
  width: 100% !important;
  padding-right: 0;
  padding-left: 0;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

Hope it helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions