When using the bootstrap classes d-none d-md-block
in the following code block, they seem to cancel out the d-flex
class. I want this block to be hidden on viewports smaller than md
, but I also need to apply the d-flex
class for the align-self-end
class to work properly. Currently, it is not working as expected. How can I make these classes work together harmoniously, or is there a different solution I should consider?
<div class="col-md-6 col-sm-12 custom-right d-none d-md-block d-flex">
<h2 class="align-self-end">Title Here</h2>
</div>