I'm troubleshooting a card layout on my Bootstrap page
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<div class="card">
<div class="card-header bg-info text-light">
<span style="vertical-align: middle">Example Python3 script</span>
<button class="float-right btn-light btn" onclick="copy_function()">Copy</button>
</div>
<div class="card-body" style="background: #F0F0F0">
<pre><code class="python" id="text_to_copy">import urllib.request, json</code></pre>
</div>
</div>
The style="vertical-align: middle"
attribute isn't aligning the text with the button as intended. Any suggestions to properly center the text and button within the card header?