I have a main container, and within it, an <h1>
heading and a <button>
. I align them using justify content-between.
Since the main container has a d-flex class, the button ends up having the same height as the main container.
Is there a way to fix this issue? I simply need to add some padding to the button.
They have minimal CSS styling, mainly just color and background color properties.
https://i.sstatic.net/0LW5Y.png
<div class="row">
<div class="col-12 d-flex justify-content-between">
<h1 class="page_title mb-4">Vélemények</h1>
<span class="btn velemeny_btn"><i class="fa fa-user-edit mr-1"></i> Vélemény írása</span>
</div>
<div class="col">
<div class="content"></div>
</div>
</div>