I could use a hand vertically aligning text within a Bootstrap button.
If I use the class the text is vertically aligned like I want, but if I use the class the text is top-aligned and nothing I do seems to change it. Any ideas?
Screenshot of the buttons:
/* added by editor for demo purpose */
button {
min-height: 80vh;
}
<!-- Bootstrap-4 -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<!-- Body -->
<div class="d-flex justify-content-between px-1 py-1 vh-100 align-middle">
<a href="#link" class="btn btn-outline-primary btn-lg w-50 align-middle" type="submit">
<h1>Header 1</h1>
<p>This is text.</p>
</a>
<button class="btn btn-outline-primary btn-lg w-50 align-middle" type="submit">
<h1>Header 2</h1>
<p>This is more text.</p>
</button>
</div>